Created
November 27, 2014 14:23
-
-
Save ehartmann/a7458c8bbf302f76802d to your computer and use it in GitHub Desktop.
Disable jenkins jobs
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
def matchedJobs = Jenkins.instance.items.findAll { job -> | |
job.name =~ /.*/ | |
} | |
matchedJobs.each { job -> | |
job.disable() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment