Skip to content

Instantly share code, notes, and snippets.

@kumbasar
Created June 19, 2018 04:59
Show Gist options
  • Save kumbasar/48d86fb288c540fd6f6f3b0a65dfee68 to your computer and use it in GitHub Desktop.
Save kumbasar/48d86fb288c540fd6f6f3b0a65dfee68 to your computer and use it in GitHub Desktop.
def q = Jenkins.instance.queue
q.items.each {
q.cancel(it.task)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment