Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure pipeline - How to specify auto retry on failure builds

Tags:

azure-devops

In Jenkins CI, there's a plugin to "Retry build after failure", where we can specify number of times we want the build to auto trigger when job fails.

Does something similar in Azure Devops, where the pipeline will auto trigger when build fails?

like image 229
ram Avatar asked Nov 30 '25 15:11

ram


1 Answers

It seems possible since November 2021 to retry a failing task, at least in YAML pipelines.

Docs: Automatic retries for a task

- task: <name of task>
  retryCountOnTaskFailure: <max number of retries>

While this is not retrying the whole pipeline, it might be enough for many use cases.

like image 128
Paweł Bulwan Avatar answered Dec 05 '25 16:12

Paweł Bulwan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!