If a job is running a system groovy script, it cannot be simply "aborted"
You need to go to $jenkins_url/script and run the contents of the attched script, replacing the original job_line
content with the path (from URL) of your job
def job_line = "Rootdir/job/Subdir/job/Job_name" | |
job_line = job_line.replace("/job/", "/") | |
Thread.getAllStackTraces().keySet().each() { | |
if (it.name.contains(job_line)) { | |
println "Stopping $it.name" | |
it.stop() | |
} | |
} |