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

7 lines
157 B
Plaintext

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