Rolling builds
With the rolling builds feature, you can configure Bitrise to automatically abort on-hold builds or already running builds if another build is triggered on the same branch.
You can cancel running builds or builds on hold with the Rolling Builds feature. The previous builds of your project can be automatically aborted once a new one is started.
Please note that manual and scheduled builds are also cancelled if you start a new build with the Rolling builds option enabled.
When is a build aborted?
If you trigger a build on a branch where a build is already running, the running build is aborted only if it runs the same Workflow.
For example, if you trigger a build on the main branch of your repository with the deploy Workflow, it will NOT cancel a build running on the same main branch with the primary Workflow.
You can also set which types of triggered builds you wish to abort. Let’s see how!
-
Open your project on Bitrise with a user that has the Admin role on the project.
-
On the main page of the project, click on the Project settings button.
-
On the left, select Builds.
-
Find the Rolling builds section.
-
Select the type(s) of builds you wish to abort when a new build is started.
Enabling the options will do the following:
-
Enabled for Pull Requests: will cancel all previous builds still on-hold for Pull Requests and all related Pushes. Running builds will not be canceled unless Running builds are aborted is also enabled.
-
Enabled for Pushes: will cancel all previous builds still on-hold for Pushes to the same branch. Running builds will not be canceled unless Running builds are aborted is also enabled.
-
Running builds are aborted: will also auto-cancel running builds in addition to on-hold ones.
All done! From now on, you don’t have to wait for a triggered build to finish if you do not need it!