Trigger another job if the existing build fails with timeout

326 Views Asked by At

In Jenkins, I have used the Build-time plugin to timeout and abort the build if the build takes more than a certain specified time. Is there a way to trigger another job immediately when this particular job fails with timeout where I can make my work process more efficient.

1

There are 1 best solutions below

2
fuzzi On

You can accomplish this by installing the Parameterized Trigger Plugin on Jenkins. (https://wiki.jenkins.io/display/JENKINS/Parameterized+Trigger+Plugin)

Once installed, as a Post-build Action, add the Trigger parametrized build on other projects, from here you can select the Failure option that you need to trigger the next job.

enter image description here