-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
I am attempting to use Future's cancel() method in the Gerrit trigger plugin (https://github.com/jenkinsci/gerrit-trigger-plugin/pull/5) to ensure that only the current version of a Gerrit patch is built. This works fine if the build is already in progress, but calling cancel() on the result of scheduleBuild2() when it is in the queue does not remove it from the queue.
This doesn't seem intended to me, but if it is, can you please provide me with the method to do what I am describing?
Thanks