I have configured jenkins to build a job periodically. (every 1 hour)
I would like to know if there is a way to configure jenkins, so that, when some of tests fail, the jenkins job stops building after that.
Please help! Thank you!.
I have configured jenkins to build a job periodically. (every 1 hour)
I would like to know if there is a way to configure jenkins, so that, when some of tests fail, the jenkins job stops building after that.
Please help! Thank you!.
You can disable jobs using the REST API (http post to <jobUrl>/disable
). You can also do that from within a running build.
So, at the end of you job, at a step that -- in case of failure -- will disable the job itself (the build will continue running to the end, but there will not be any further builds).