When I cancel the build manually or using BuildEngine.instance.cancelRequest(<buildId>);
the build is not cancelled even after multiple tries.
It only happens at a specific step which is using groovy script to execute multiple p4 comands:
test_list.each()
{
command = "p4 describe -Ss " + CL // sample command
try {
result = util.readOutput(command)
} catch (Exception E) {
logger.info("error : " + E)
}
...
}
it just ignores the issued cancel signal. At the most , the build cancels one of the p4 command and all other steps are executed as normal.
1.Could you explain why this is happening?
2.Please help me how can I achieve cancelling the complete build in such scenario, if possible ? else any workarounds?
I am using QB8.0
- solved #4
- replies 3
- views 2510
- stars 0