Jenkins CI is a very powerful tool, some plugins can be installed using it. Lately I have had a demand about two parallel processing jobs. We know that a lot of plugins have achieved this functionality, such as join plugin, Trigger parameterized plugin and so on. However I need another functionality as well.
The new functionality we want is the following:
Job A and Job B are processing parallel, if job A build fails, then Job B stops running instantly.
I haven't found any plugin achieving that.
Can you help me and inform me if there is any plugin with such functionality?
Thank you very much!
You can use Post Build task plugin on your Job A and Job B.
You can set it to run when the jobs are failed:
Log Text -> BUILD FAILED
And when the build is failed you can execute a
Script
to stop the job you want to be stopped using the jenkins API as it is being discussed here.