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 217
- stars 0
-
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?
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.