CircleCI Ideas

Support automatic retry of failed builds

It would be great if CircleCI allowed you to configure an automatic retry of a build upon failure. Ideally, you would be able to specify the max number of times you would like it to retry. 

Taken from: https://discuss.circleci.com/t/support-auto-retrying-of-failed-builds/13332/6

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Mar 8 2019
  • Taking votes
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    April 16, 2019 21:34

    Yes please!  In a perfect world, a build failure would always represent a need for a code change, but the reality is that many build scripts have issues that just are a bit flaky.  More often than not, we end up having to make arbitrary code changes and push just to try again :(

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    April 18, 2019 20:33

    Thanks for that feedback Tyler. I'm curious, would it be acceptable to use an orb in order to emulate the retry logic?

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    June 09, 2019 18:32

    I need something like this feature in Gitlab CI https://docs.gitlab.com/ee/ci/yaml/#retry when a job fails, the job will retry.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    23 Jan 15:05

    Any update on this?  Folks have been asking for it in your forums since 2017.  Other CI systems have this out of the box.  We really don't like having to manually hit the retry button every time a build fails due to external issues...