devops-exercises/challenges/jenkins/scripts/jobs_with_string.groovy
2019-12-21 13:26:41 +02:00

7 lines
145 B
Groovy

def jobs = Jenkins.instance.items.findAll { job -> job.name =~ /"REMOVE_ME"/ }
jobs.each { job ->
println job.name
//job.delete()
}