# Option to Auto Retry/Rebuild When Build Fails

**URL:** <https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131>\
**Category:** Builds\
**Created:** [February 18, 2019, 7:24pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131 "2019-02-18T19:24:14Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![natedykens](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@natedykens](https://discuss.bitrise.io/u/natedykens)\
**Post date:** [February 18, 2019, 7:24pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/1 "2019-02-18T19:24:14Z")

</div>

## Ability to set option to auto-retry a build when it fails

For several cases, we have observed that Xamarin Android builds fail to find the proper SDK & then fail the build. However, a simply rebuild will fix the issue in most cases.

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [February 19, 2019, 9:43am UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/2 "2019-02-19T09:43:49Z")

</div>

Hello there!

Thanks for the feature request, also we found out that this issue is not happening on the `Previous Hybrisd stable channel` stack! 🙃

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [February 19, 2019, 1:57pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/3 "2019-02-19T13:57:40Z")

</div>

I think instead of doing a complete rebuild a **step** retry option would be better, as that would take less time.

Would that solve the issue you’re referring to @natedykens, if you could mark a specific step to be retried instead of retrying the whole build?

---

<div class="post-metadata">

**Author:** ![natedykens](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@natedykens](https://discuss.bitrise.io/u/natedykens)\
**Post date:** [February 19, 2019, 2:11pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/4 "2019-02-19T14:11:40Z")

</div>

I am not sure if this would work or not, but we could try.  
The reason I say this is because when I have the same issue locally (with Visual Studio) when trying to build, I have to close entirely out of the the solution/application & restart for it to work.  
But I guess if all your builds are run via command-line, then I suppose it could work.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [February 21, 2019, 12:46pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/5 "2019-02-21T12:46:56Z")

</div>

Thanks for the details!

We have a card in our backlog to allow retry on step level.

I think that should help, but if you want to test whether it would you could copy/duplicate the related failing step and then specify a `run_if: .IsBuildFailed` for the copy, which means to only run that step if a previous step would fail. Docs: [https://devcenter.bitrise.io/tips-and-tricks/disable-a-step-by-condition/#running-a-step-only-if-the-build-failed](https://devcenter.bitrise.io/tips-and-tricks/disable-a-step-by-condition/#running-a-step-only-if-the-build-failed)

---

<div class="post-metadata">

**Author:** ![glureau-betclic](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@glureau-betclic](https://discuss.bitrise.io/u/glureau-betclic)\
**Post date:** [April 4, 2019, 1:18pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/6 "2019-04-04T13:18:15Z")

</div>

Hello @viktorbenei  
Do you know if this evolution is scheduled for a release?  
And if yes, in how much time do you think we’ll see this in production?  
Thanks!

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [April 4, 2019, 1:26pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/7 "2019-04-04T13:26:52Z")

</div>

Hello there, I checked and this task got into the “ready to sprint” status 2 days ago, if everything goes well it should be released in the following weeks. 🙃

---

<div class="post-metadata">

**Author:** ![maxlapides](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@maxlapides](https://discuss.bitrise.io/u/maxlapides)\
**Post date:** [August 21, 2019, 9:52pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/8 "2019-08-21T21:52:15Z")

</div>

Hey I just wanted to chime in here that a “retry step” feature would be great! We frequently have our “flutter build” step time out, and typically re-running the build works. I’m not sure why it times out, but having it automatically time out and retry would save us a lot of manually clicking “re-run” when this happens.

Is there an updated timeline for this feature?

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [August 26, 2019, 12:50pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/9 "2019-08-26T12:50:45Z")

</div>

Hey there @maxlapides!

No update yet, this is something still in progress, but will update you as soon as anything substantial has been implemented! 🙂

---

<div class="post-metadata">

**Author:** ![kai.jing](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@kai.jing](https://discuss.bitrise.io/u/kai.jing)\
**Post date:** [May 11, 2020, 6:57pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/10 "2020-05-11T18:57:33Z")

</div>

Any update about this feature request? is it available?

---

<div class="post-metadata">

**Author:** ![epadoca](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@epadoca](https://discuss.bitrise.io/u/epadoca)\
**Post date:** [November 25, 2021, 7:16pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/11 "2021-11-25T19:16:17Z")

</div>

Waiting for this feature too.

---

<div class="post-metadata">

**Author:** ![diegorochagorila](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@diegorochagorila](https://discuss.bitrise.io/u/diegorochagorila)\
**Post date:** [December 14, 2021, 2:27pm UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/12 "2021-12-14T14:27:51Z")

</div>

I really REALLY want this feature at all… (like Bitbucket pipelines for example)  
Is there a update for this request?

---

<div class="post-metadata">

**Author:** ![maiko.morisaki.ub](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/maiko.morisaki.ub/32/4382_2.png) [@maiko.morisaki.ub](https://discuss.bitrise.io/u/maiko.morisaki.ub)\
**Post date:** [January 11, 2024, 8:01am UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/13 "2024-01-11T08:01:39Z")

</div>

+1

It is especially helpful in development if only the pipeline failure step can be done.

---

<div class="post-metadata">

**Author:** ![PatrikCrunchfish](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@PatrikCrunchfish](https://discuss.bitrise.io/u/PatrikCrunchfish)\
**Post date:** [March 8, 2024, 9:54am UTC](https://discuss.bitrise.io/t/option-to-auto-retry-rebuild-when-build-fails/8131/14 "2024-03-08T09:54:39Z")

</div>

+1 This is a much needed feature
