java-tutorials/jenkins-modules/jenkins-jobs/zombie-job/zombie-stop-script

7 lines
152 B
Plaintext

Thread.getAllStackTraces().keySet().each() {
if (it.name.contains('sampleZombieJob')) {
println "Stopping $it.name"
it.stop()
}
}