Reputation: 1173
If there are multiple pushes to branch, Bamboo schedules separated builds for every push which creates redundancy on the queue. We only care about the last build with the latest changes for ours pull requests. Therefore, is there any way/configuration to cancel ongoing/scheduled builds if new build is scheduled?
I figured out Enable quiet period
option (Quiet period allows you to delay building after a single commit is detected, aggregating multiple commits per build). However, quiet period is not the best way to handle the redundancy on the queue.
Does anybody have any idea?
Upvotes: 0
Views: 1329
Reputation: 891
A few things:
Plan Configuration -> Branches
. You can select Manually or "When pull request is created". The latter will only trigger a branch build when the PR is created and is updated.Finally, you could theoretically use the REST API to create your own custom plugin/application that stops builds.
Upvotes: 1