Hi,

What I want to do is to cancel a build that are still in the queue.

So I am wondering if there some description on how to cancel a build that a
plugin  started through AbstractProject.scheduleBuild2()

The QueueTaskFuture returned do have a cancel method, that at first seem to
be a good idea to use, but as far as I can tell that will end up canceling
the build at the head of the queue, not the one that belong to the
scheduled build. Is this intentional?

Will iterating the Jenkins.instance.queue.items and cancel the item that
match my previously future object work, or will that leave something behind
that needs to be cleaned up?


Best regards
//Stefan

-- 
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/CAG_yGUJZnjBA97uhLOzhh_YL4EiLCQ69Yw1yBy-wK6i2HGh6jQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to