Created
September 18, 2014 14:37
-
-
Save zevnull/e54f6befc3398afcd7ea to your computer and use it in GitHub Desktop.
disable all jenkins jobs
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.* | |
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