devops-exercises/scenarios/jenkins/scripts/jobs_with_string.groovy
2019-10-19 23:49:53 +03: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()
}