Skip to content

Instantly share code, notes, and snippets.

@rohitasva
Created February 16, 2016 22:15
Show Gist options
  • Save rohitasva/158ab93e9a836cf8ed69 to your computer and use it in GitHub Desktop.
Save rohitasva/158ab93e9a836cf8ed69 to your computer and use it in GitHub Desktop.
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