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?
Hi @Oleksii Kotukhov and welcome to the Atlassian Community!
I'm not aware of such a setting. Canceling a build each time a new one starts does not sound ideal. What if your build is quite long and every time it almost completes there is a new push. Theoretically you could end up with commits all day long without a single completed build.
Instead you could use the quiet period setting: Globally enabling the repository quiet period | Bamboo Data Center 9.6 | Atlassian Documentation
With this setting Bamboo will not execute a build immediately but it will wait for some time to allow consecutive pushes to be built in a single run.
Hello @Charlie Misonne we have cases when the build can take a long time to be executed. This can lead to a long queue with scheduled builds for the same branch. So I'm looking for some feature to allow canceling such "duplicates" automatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Oleski,
Well nothing like that exists so you'd have to create your own plugin.
Or creating external script listening checking the queue with this API endpoint: Get api latest queue and this one to stop a build if another one has been queued.
You can also rethink your build process: do you really need to build on every commit? Why not just every hour, or every 2 hours, or...
Or you could only build when a pull request is created.
Just some ideas :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The feature is coming in Bamboo 10.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The official release is still few weeks away, but we've just published a release candidate: https://community.developer.atlassian.com/t/bamboo-data-center-10-0-early-access-program-release/81426
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.