Hello,
I'm trying something simple. From a groovy script, I would like to know if a step or a container is waiting or not.
My script is looking for the "Hello" step status
The groovy script inside the step "MyScript"
groovy:
//To be sure that the "Hello" step is processed, I'm waiting 5 secs prior looking for the status
Thread.sleep(5000)
def stepPathToWatch = 'master>PAR BLOCK>SEQU 2>Hello'
def stepToWatch = build.getStep(stepPathToWatch) // Same result with steps.get(stepPathToWatch)
logger.info('stepToWatch.getStatus().name()={}', stepToWatch.getStatus().name())
logger.info('stepToWatch.isWaiting()={}', stepToWatch.isWaiting())
The log result
17:41:47,695 INFO - stepToWatch.getStatus().name()=IDLE
17:41:47,696 INFO - stepToWatch.isWaiting()=false
17:41:47,696 INFO - Executing post-execute action...
I'm unable to get the "WAITING" status and even the isWaiting() method return false.
any thoughts about what am I doing wrong ?
context: PMEase QuickBuild, 12.0.12, 2022-08-04
Thank you