Skip to content

Instantly share code, notes, and snippets.

Andrew Ferguson warandpeace

Block or report user

Report or block warandpeace

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nextrevision
nextrevision / deleteJenkinsJobs.groovy
Created Dec 3, 2015
Groovy script to delete all jenkins jobs that match a regex pattern
View deleteJenkinsJobs.groovy
import jenkins.model.*
def matchedJobs = Jenkins.instance.items.findAll { job ->
job.name =~ /my_regex_here/
}
matchedJobs.each { job ->
println job.name
//job.delete()
}
You can’t perform that action at this time.