Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Cancel command issued but build not stopped #4499

kguru ·

I am trying to cancel a old build when a new build has been started. The cancel command works fine in all cases except when the previous build is executing the "MISC -> Change file permissions" step.

  • solved #8
  • replies 7
  • views 283
  • stars 0
robinshen ADMIN ·

This step is not cancellable. The build should stop after executing this command.

drdt ·

Robin, you once told me "In groovy step please use "Thread.sleep" instead of "sleep" as "sleep" is not cancellable in groovy."

I remember in my scenario, if I cancelled while a groovy sleep action was running, the cancel would be ignored.. the current step would finish, and then all subsequent steps would run. Only at the end would be the build be marked "cancelled".

Is this possibly related/similar?

kguru ·

The build does not stop executing even after the "Change file permissions" step finishes executing.

robinshen ADMIN ·

Robin, you once told me "In groovy step please use "Thread.sleep" instead of "sleep" as "sleep" is not cancellable in groovy."

I remember in my scenario, if I cancelled while a groovy sleep action was running, the cancel would be ignored.. the current step would finish, and then all subsequent steps would run. Only at the end would be the build be marked "cancelled".

Is this possibly related/similar?

This step calls Ant chmod to do the job, and it does not respond to thread interrupting before finishing.

robinshen ADMIN ·

The build does not stop executing even after the "Change file permissions" step finishes executing.

This is abnormnal. Which QB version are you using? Can you reproduce the issue with a simple setup?

kguru ·

I am using QB version 13.0.8 and yes, I am able to reproduce this with a simple setup. The build displays the cancel state but only after executing all the steps which is not ideal.

kguru ·

This bug has been fixed in QB 13.0.18 release. Thanks Robin for the quick fix.