This is the documentation for Bamboo 5.8. View this page for the

Unknown macro: {spacejump}

of Bamboo, or visit the latest Bamboo documentation.

別のプランのビルドが正常に完了したときに、プラン ビルドをトリガすることができます。これによって、あるプランに関連するジョブのソース コードに対する変更が、別の従属プラン(「子」プランとも呼ばれます)のビルドを破壊しないようにします。

たとえば、Bamboo に2つのプランがあるとします。

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

このシナリオでは、Acme – Plugin プランが Acme – Core の子となります。Acme – Coreに関連するソース コードに対する変更は、Acme – Plugin のビルドをトリガする必要があります。

このページの内容

従属プランのトリガ

このプランが正常にビルドされたときに子プランがビルドされるようにトリガする方法

  1. ダッシュボードをクリックし、すべてのプラン タブをクリックします。
  2. リスト内でプランを見つけ、編集アイコンをクリックして、プランの設定ページを表示します。
  3. 依存関係タブをクリックします。
  4. 「子プラン」で、プランの検索にプラン名を入力し、トリガする子プランを選択します。トリガされるプランは複数設定することができます。
  5. 保存をクリックします。

Maven 3 による依存関係の自動管理

依存関係の自動管理は、Maven 3 を使用するユーザー向けの機能であり、Maven の pom.xml の依存関係に従って親と子の依存関係をセットアップすることができます。プランが実行されるたびに、Bamboo 自動依存関係が更新され、Maven 依存関係の追加または削除を反映します。

依存関係の自動管理のセットアップ

  1. ダッシュボードをクリックし、すべてのプラン タブをクリックします。
  2. リスト内で計画を見つけ、編集アイコンをクリックして、計画の設定ページを表示します。
  3. Locate the job that contains the pom.xml you wish to use to automatically update plan dependencies by analysing a Maven pom file.
  4. アクション > ジョブの設定を選択します。
  5. タスク タブをクリックします。
  6. Click Add Task and 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.

    設定注意
    プロジェクト ファイルのオーバーライドオプション。プロジェクト ファイル(pom.xml)のある作業ディレクトリまたはサブ作業ディレクトリに対する相対位置。
    Working Sub Directoryオプション。タスクがプロジェクト ファイル(pom.xml)を探すサブ ディレクトリ。
    別の settings.xml の場所オプション。タスクが特定の Maven リポジトリからの依存関係を解決する必要がある場合に使用される別の settings.xml を指定します。
    Maven ローカル リポジトリのパスオプション。依存関係の解決に使用するタスクのローカル Maven リポジトリのフル パスを指定します。
  7. 保存をクリックします。
  8. プラン ナビゲータを使用して、プランに戻ります。
  9. 依存関係タブをクリックします。
  10. 依存関係の自動管理を選択します。Maven 依存関係プロセッサを表示するように設定したジョブの名前が表示されます。
  11. 保存をクリックします。

依存関係ブロック

Dependency blocking is an 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 build is triggered because of source repository code updates.

注意

Build dependencies work together with the trigger configuration of plans to trigger builds of these plans. For example, you can set up Plan A to poll its repository for changes as well as to be dependent on a parent plan (Plan B). In this case, builds of Plan A will be triggered when code changes are detected in its repository and also when builds of Plan B complete successfully.
If you want your builds to only be triggered by successful parent builds from your build dependencies, don't configure triggering for your child plans at all. See Running a plan build manually.

  • 子ビルドが親ビルドと同じソースを使用する場合(Subversion URL が同じ場合など)、子ビルドは強制的に、親ビルドと同じリビジョンのソース コードをチェックアウトします。これによって、あるビルドから別のビルドをトリガする場合に、ビルドの整合性を保ちます。
  • Take care not to create circular dependencies, where your child build triggers one of its parent builds. Otherwise your plans may build continuously. See Running a plan build manually.