Skip to content

Instantly share code, notes, and snippets.

@zevnull
Created September 18, 2014 14:37
Show Gist options
  • Save zevnull/e54f6befc3398afcd7ea to your computer and use it in GitHub Desktop.
Save zevnull/e54f6befc3398afcd7ea to your computer and use it in GitHub Desktop.
disable all jenkins jobs
import hudson.model.*
for(item in Hudson.instance.items) {
println("JOB : "+item.name)
item.disabled=true
item.save()
println("\n=======\n")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment