Gihan213
Gihan213

Reputation: 43

Is there a way to stop Jenkins build step if fails more than x times

I have a build setup which uses chained freestyle Jenkins projects. And that setup contains some build projects that fails frequently due to DB issues.

If the specific build project is failed, it will automatically restart that build project.

However I don't want to run build to run on a loop if it fails continuously. How can I set a condition to stop the build if it was failed more than x times ?

Upvotes: 0

Views: 544

Answers (1)

Arun Kumar B
Arun Kumar B

Reputation: 311

Naginator plugin provides Maximum number of successive failed builds option to choose how many times to retry running the job.enter image description here

Upvotes: 1

Related Questions