Hi,

In the Groovy Postbuild plugin I call an external service in a loop waiting 
for some other operation to finish. It works, however, the build ignores a 
try to abort it using the Jenkins UI or an API.

I tried to check if the current thread isn't interupted 
(Thread.currentThread().isInterrupted()), but it's not. The build results 
(manager.getResult()) is also SUCCESS.

How can I programatically detect (probably using some Jenkins API) that it 
was requested to abort a build to break my loop and allow the build to be 
aborted?

Marcin

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/974664bf-1e64-411c-9e19-19a64304b86b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to