You may want to trigger a Plan build when another Plan's build has successfully completed. This ensures that changes to any Job's source code associated with one Plan does not break the build of another dependent Plan (known in this context as a 'child' Plan).

For example, there could be two Plans in Bamboo:

  1. Acme – Core — アプリケーションのコア コードが含まれています。
  2. Acme – Plugin — アプリケーションのプラグインのコードが含まれています。

In this scenario, the Acme – Plugin Plan is a child of Acme – Core. Any changes to source code associated with the Acme – Core Plan should trigger a build of Acme – Plugin. In turn, every time a Acme – Plugin Plan build completes successfully, you may want to run builds for some additional Plans (e.g Acme – Functional Tests and Acme – Unit Tests). In this case, Acme – Plugin is a parent of the Acme – Functional Tests and Acme – Unit Tests Plans, as well as being a child of the Acme – Core Plan.

On this page:

Manual Dependency Management

To trigger a build when another build finishes:

  1. ダッシュボードをクリックし、すべてのプラン タブをクリックします。
  2. Locate the plan in the list and click the edit icon  to display the Plan's Configuration pages.
  3. 依存関係タブをクリックします。
  4. Locate the 'Manual Dependency Management' section — all Plans in your Bamboo system (other than the one you are configuring) are listed in the 'Child plans' and 'Parent plans' sections. Select Plans in the following subsections:
  5. 保存をクリックします。

Automatic Dependency Management with Maven 2

Automatic Dependency Management is a feature for users who use Maven 2 and wish for their Parent and Child dependencies to be setup according to the dependencies in the Maven pom.xml. Every time the plan is run, the Bamboo Automatic Dependencies are updated to reflect any additions or removals of Maven dependencies.

To setup Automatic Dependency Management:

  1. ダッシュボードをクリックし、すべてのプラン タブをクリックします。
  2. Locate the Plan in the list and click the edit icon  to display the Plan's Configuration pages.
  3. Locate the Job using the Plan Navigator that contains the pom.xml you wish to use to automatically update Plan dependencies by analysing a Maven pom file.
  4. Click on the Tasks tab
  5. Add the Maven Dependency Processor Task to the Job. For best results, ensure that the Task runs last by dragging it to the bottom of the Task list. For more information on configuring Tasks, see Configuring Tasks.
  6. 保存をクリックします。
  7. Use the Plan Navigator on the left to return to the Plan.
  8. 依存関係タブをクリックします。
  9. Locate the Automatic Dependency Management section.
  10. Select Automatic Dependency Management. You should see the name of the Job for which you configured the Maven Dependency Processor appear.
  11. 保存をクリックします。

Dependency Blocking

Dependency blocking is a advanced feature of dependent build triggering that can be used to manage Plan builds with parent build dependencies. This ensures that a "tree" of dependent builds always runs in tree hierarchy order, even if child Plan builds are triggered independently of their parents. For more information, see Dependency Blocking Strategies. Please note, dependency blocking only works when the Plan uses a build strategy based on source code updates.

注意