I am trying to find a way to kill a Jenkins job and all its children immediately. Is there a such a way to do this in Jenkins?
Initially I was looking at finding a process group and killing it:
kill -TERM -- -....
But ps
is not returning anything Jenkins related.
1) Is there a way to kill a job and its children in Jenkins and
2) If yes, is it possible to create a job that can take another job as a parameter to kill it?