# Rolling Builds specific to workflow

**URL:** <https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138>\
**Category:** Released\
**Tags:** released\
**Created:** [February 14, 2018, 1:47am UTC](https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138 "2018-02-14T01:47:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![thon](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/thon/32/773_2.png) [@thon](https://discuss.bitrise.io/u/thon)\
**Post date:** [February 14, 2018, 1:47am UTC](https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138/1 "2018-02-14T01:47:57Z")

</div>

In Settings, there is a feature called: **ROLLING BUILDS** , described as “Auto-cancel on-hold builds if a new build is triggered on the same branch”

There’s a couple other options that can also be enabled:

- **Pull Requests** Will cancel all previous builds for Pull Requests and all related Pushes
- **Pushes** Will cancel all previous builds for Pushes to the same branch
- **Running builds** Will also auto-cancel running builds in addition to on-hold ones

The problem I’m hitting into is that it’s cancelling builds of different workflows.  
e.g. we have unit\_test automatically kick off whenever someone pushes to _develop_

When this happens, any build that is targeting _develop_ will be canceled, even if it’s a different workflow (e.g. ui\_automation)

Is there a way to configure this so that it only cancels other builds of the same workflow?

Thanks!

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/daniel/32/20_2.png) [@daniel](https://discuss.bitrise.io/u/daniel)\
**Post date:** [February 14, 2018, 9:53am UTC](https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138/2 "2018-02-14T09:53:43Z")

</div>

Hi @thon,

The trigger map currently can only trigger one workflow for a specific branch. Even if you set up two separate triggers for the `develop` branch, Bitrise will only care about the one you specified first (top of the list).

Can you please share a bit more info about your trigger map structure or config in general? Are you triggering builds from inside your workflow with the build trigger API?

Thank you!

---

<div class="post-metadata">

**Author:** ![ubuntudroid](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ubuntudroid/32/346_2.png) [@ubuntudroid](https://discuss.bitrise.io/u/ubuntudroid)\
**Post date:** [February 14, 2018, 10:31am UTC](https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138/3 "2018-02-14T10:31:32Z")

</div>

@daniel The multi-workflows described [here](http://discuss.bitrise.io/t/how-to-trigger-multiple-workflows-at-the-same-time/3401) are a good example use case.

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/daniel/32/20_2.png) [@daniel](https://discuss.bitrise.io/u/daniel)\
**Post date:** [February 14, 2018, 12:26pm UTC](https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138/4 "2018-02-14T12:26:07Z")

</div>

@ubuntudroid Yup, my guess is the same, that this is what happens. Can you confirm this @thon?

---

<div class="post-metadata">

**Author:** ![thon](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/thon/32/773_2.png) [@thon](https://discuss.bitrise.io/u/thon)\
**Post date:** [February 14, 2018, 10:07pm UTC](https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138/5 "2018-02-14T22:07:08Z")

</div>

My use case is a bit different.

Here’s how my project is set up. Under **Triggers** , I have:

Push branch **develop** --\> Workflow: unit\_test

I also have several workflows that I’ve scheduled to run nightly against **develop**

- acceptance\_test\_1
- acceptance\_test\_2
- acceptance\_test\_3
- acceptance\_test\_4
- acceptance\_test\_5

With **rolling builds** enabled, what I’m seeing when I push a new commit to **develop** is that it will schedule the unit\_test workflow, but cancel any acceptance test that is on hold because they’re also targeting **develop**.

---

<div class="post-metadata">

**Author:** ![ubuntudroid](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ubuntudroid/32/346_2.png) [@ubuntudroid](https://discuss.bitrise.io/u/ubuntudroid)\
**Post date:** [February 20, 2018, 2:56pm UTC](https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138/6 "2018-02-20T14:56:50Z")

</div>

Oh, that’s ugly indeed. Strong case for workflow specific rolling builds IMHO.

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [August 25, 2021, 11:16am UTC](https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138/7 "2021-08-25T11:16:47Z")

</div>

Hey folks, I’m closing this thread as this has been implemented for a while, the current behavior of Rolling Builds is that it will cancel build for the same branch and workflow combination.

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [August 25, 2021, 11:16am UTC](https://discuss.bitrise.io/t/rolling-builds-specific-to-workflow/4138/8 "2021-08-25T11:16:49Z")

</div>

Closed on August 25, 2021, 11:16am UTC


