Last active
October 8, 2021 12:36
-
-
Save luanlmd/6243ea5567d81bb1030a562feafa609f to your computer and use it in GitHub Desktop.
Clear Jenkins Queue
This file contains 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
// Go TO JENKINS_HOST/script | |
// Paste and run: | |
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