Created
April 10, 2018 22:54
-
-
Save toshke/7796678a82ed6e26ced77c23f72dac40 to your computer and use it in GitHub Desktop.
Clear Jenkins Queue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hudson.model.* | |
def queue = Hudson.instance.queue | |
println "Queue contains ${queue.items.length} items" | |
queue.clear() | |
println "Queue cleared" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment