# Button to retry all failed steps in a build

**URL:** <https://forum.buildkite.community/t/button-to-retry-all-failed-steps-in-a-build/907>\
**Category:** Features Requests\
**Created:** [February 6, 2020, 8:47pm UTC](https://forum.buildkite.community/t/button-to-retry-all-failed-steps-in-a-build/907 "2020-02-06T20:47:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanderlijbrink](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/sanderlijbrink/32/678_2.png) [@sanderlijbrink](https://forum.buildkite.community/u/sanderlijbrink)\
**Post date:** [February 6, 2020, 8:47pm UTC](https://forum.buildkite.community/t/button-to-retry-all-failed-steps-in-a-build/907/1 "2020-02-06T20:47:29Z")

</div>

With large pipelines (100+ parallel steps), it’s common for us to have more than 1 failed step due to e.g. network or test flakiness. Rather than restarting the entire build, it would be much faster (and more economical) to retry all failed individual steps, especially because blocking steps in the pipeline have already passed.

A simple button (“retry failed steps”) on top of the build would solve this problem. We have been asked about this many times by our developers.

---

<div class="post-metadata">

**Author:** ![Keith](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/keith/32/592_2.png) [@Keith](https://forum.buildkite.community/u/Keith)\
**Post date:** [February 6, 2020, 8:58pm UTC](https://forum.buildkite.community/t/button-to-retry-all-failed-steps-in-a-build/907/2 "2020-02-06T20:58:35Z")

</div>

This would be great for us too for the same reasons! Also if we could do it from the API

---

<div class="post-metadata">

**Author:** ![xiaket](https://avatars.discourse-cdn.com/v4/letter/x/7feea3/32.png) [@xiaket](https://forum.buildkite.community/u/xiaket)\
**Post date:** [February 18, 2020, 5:14am UTC](https://forum.buildkite.community/t/button-to-retry-all-failed-steps-in-a-build/907/3 "2020-02-18T05:14:38Z")

</div>

We have the same issue here and our approach is to auto retry these flaky tests automatically three times and forbid manual retry for these tests. If somebody bumped into the same stone three times in a roll, he/she should be the one who clean up the road and remove that stone.

---

<div class="post-metadata">

**Author:** ![thibaut](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/thibaut/32/950_2.png) [@thibaut](https://forum.buildkite.community/u/thibaut)\
**Post date:** [April 27, 2021, 10:12pm UTC](https://forum.buildkite.community/t/button-to-retry-all-failed-steps-in-a-build/907/4 "2021-04-27T22:12:41Z")

</div>

This feature would save me about 30 minutes a week.
