devops-exercises/exercises/cicd/solutions/remove_jobs_solution.groovy
abregman 046b154ccd Change Jenkins section to CI/CD
CI/CD will include Jenkins and other CI/CD systems.

In addition, added a couple of questions on various topics.
2021-10-31 08:32:18 +02:00

7 lines
140 B
Groovy

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