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

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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 the Create plan branch (except the option "Manually"):

(Auto-migrated image: description temporarily unavailable)

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

Cause

As per Bamboo code design, branch detection is intended to 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 that 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.

Updated on March 24, 2025

Still need help?

The Atlassian Community is here for you.