インデックス![]()
ダウンロード (PDF、HTML および XML 形式)
[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.
このページの内容
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.
計画のブランチを手動で作成するには、次の手順を実行します。
スクリーンショット: ブランチの [Plan Summary (計画の要約)] ページに「ブランチ」メニューが表示されている。
ブランチのマージを自動化する場合、Bamboo には 2 つのマージ モデルが用意されています。
ブランチ アップデーターは、次のような場合に使用してください。
別のリポジトリの最近の変更をブランチ リポジトリに統合するには、次の手順を実行します。
ゲートキーパーは、次のような場合に使用してください。
正常にビルドされた変更を別のリポジトリにプッシュするには、次の手順を実行します。
計画の自動ブランチングおよびマージには、次の制限が適用されます。
| 操作 | 制限事項 |
|---|---|
| 計画の自動ブランチング |
|
計画の手動ブランチング |
|
| ブランチの自動マージ |
|
| 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. |