Index
Downloads (PDF, HTML & XML formats)
[Bamboo Knowledge Base Home]
Documentation for Bamboo 4.0.x. Documentation for earlier versions of Bamboo is available too.
Plan branches are used to represent a branch in your version control repository, where the plan branch uses the same build configuration as your plan.
Tools such as Git and Mercurial encourage a practice called feature branching, where a developer can use a new branch to work in isolation from his or her team members before merging their changes back into main line development. This guarantees that their new code functions correctly before sharing the changes with the rest of the team.
However, changes made on a branch may not be built and tested by Bamboo unless the developer sets up a new build plan, or clones an existing plan that is configured to build the new branch. When using plan branches, any new branch that is created is automatically built and tested using the build configuration of the plan that plan branches was enabled for. Optionally, changes from the feature branch can be merged back to the "master" (e.g. trunk, default or mainline branch).
Note that you need to 'favourite' a plan branch in order to receive notifications about build results for it.
On this page:
When you activate plan branching, Bamboo automatically creates branches whenever the source repo is branched. You can also create a plan branch manually.
Whichever way the plan branch is created, the default plan maintains the structure and configuration of it's branch plans. However, you can override the following settings in a branch plan:
To see a list of branches for a plan, click on the branch icon beside a plan name on the All Plans tab. Select a branch name from the list to go directly to the summary page for that branch plan.
You can click Detect Branches to get Bamboo to check for branches in the specified repository for the plan.
Use auto branching for Git and Mercurial repositories. For other repository types, use manual branching.
To have Bamboo automatically create a branch plan whenever the repo branches:
Please note that 'Automatic Branch Clean-up' is supported for Mercurial, Git (Bamboo 4.1.1 and above) and Subversion (Bamboo 4.2.0 and above).
Use manual branching for all supported repository types. You can use auto branching for Git and Mercurial repositories.
To manually create a branch of a plan:
Screenshot: The Plan Summary page for a branch, showing the 'branches' menu.
Bamboo provides 2 merging models if you choose to automate your branch merging:
The Branch Updater should be used when you want to:
To have recent changes in another repo merged into your branch repo:
The Gatekeeper should be used when you want to:
To have your successfully built changes pushed to another repo:
The following limitations apply to using automated plan branching and merging:
Action | Limitations |
---|---|
Auto plan branching |
|
Manual plan branching |
|
Auto branch merging |
|
Plan Branches with multiple repositories | See Is it possible to use plan branches to override the branch on multiple repositories in a plan? on Atlassian Answers. |