JENKINS: Can I stop \ Abort other running / pending jobs by completing a specific job?
I have a job that needs to stop other running / pending jobs at startup.
Can this be done automatically?
+3
Avi rosenfeld
source
to share
2 answers
This is an old question, but I just spent a ton of time looking for an answer, hopefully this saves time:
Use jenkins http api to stop build: wget http://your.jenkins.host/job/JOBNAME/lastBuild/stop
If you are using Matrix permissions, make sure your anonymous user has Read and Cancel permissions on Jobs.
+1
Boababa
source
to share
You have access to a plugin to kill another task.
You can use this plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Signal+killer
This plugin extends the ProcessKiller extension point and sends a signal (currentlly SIGKILL) to a given job via its own call to the GNU C library.
0
skandpurohit
source
to share