Plan branches are added to disabled Bamboo Plans with Automatic branch management enabled

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Bamboo creates plan branches automatically under disabled plans whenever branches/pull requests are created in a remote repository linked to those plans, such as a Bitbucket server.

Environment

All supported versions of Bamboo.

Diagnosis

Check how the plan branch creation is configured in the Bamboo plan(which is in a disabled state) from the Plan Configuration>> Branches tab. Bamboo plan has automatic branch management enabled  i.e, one of the options shown in the below image is enabled for Create plan branch (except the option "Manually"):

Please note that this issue doesn't apply when the Create plan branch "Manually" option is enabled.

Cause

As per Bamboo code design, it's intended that branch detection will still run, detect and build new branches even when the main plan is disabled.

Solution

To disable the plan branch creation in Bamboo for the plan which is in a disabled state, you'll need to disable automatic plan branch creation. To do this, please set Plan Configuration >> Branches >> (Create plan branch) Manually. This would fix the issue and plan branches will not be created and built under the disabled Bamboo plans.

Last modified on Aug 10, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.