ビルドのトリガ

Bamboo でトリガーすると、計画ビルドを自動的に開始できます。Bamboo には次のトリガー メソッドがあります。

コードが変更された場合にビルドをトリガーする

スケジュールに基づいてビルドをトリガーする

他のプランの結果に応じてビルドをトリガーする

トリガーが設定されていないプランは、手動で、または別のプランのビルドが成功したかどうかに依存している場合にのみ開始できることに注意してください。

Bamboo 4.3 では、プランごとに複数のトリガーを設定できます。これにより、プランをさまざまなトリガー タイプでトリガーしたり、「午前 9:00 から午前 10:00 までの間は 5 分ごと、午後 1:00 から午後 10:00 までの間は 20 分ごと」のようなトリガー シナリオを設定したりできます。

Bamboo 管理者のみがトリガーを設定できます。

トリガー戦略を選択する

This table lists the ways in which plan builds can be triggered in Bamboo.

Triggering option

説明

リポジトリをポーリングして変更を確認する

Bamboo will 'poll' the selected source code repositories for code changes, using either a specified interval (that is, periodically) or a schedule. If Bamboo detects code changes, a build of the plan is triggered.

  • Your VCS must service a 'check out' or 'update' command whenever it is polled, even if no code has changed in a repository.

See Polling the repository for changes.

変更がコミットされるとリポジトリがビルドをトリガーする

Bamboo waits to receive a message about changed code from any of the selected source code repositories. When Bamboo receives such a message, a build of the plan is triggered.

  • This option minimizes server load, because message events are sent only when code changes to a repository are committed.
  • You must configure your source code management system to send message events to Bamboo about code changes in the repositories.

 

 

 

See Repository triggers the build when changes are committed.

Cron ベースのスケジューリング

Bamboo will trigger scheduled builds of this plan based on a cron expression.

  • This option allows you to schedule builds when server load is likely to be minimal, for example, outside office hours.
  • Scheduled builds are triggered irrespective of any code changes in the source code repositories.

See Cron-based scheduling.

毎日 1 回のビルド

Bamboo will trigger a build of the plan once per day at a specified time.

  • Can be set up to run at a time of you choice.
  • This option is suitable if a build of this plan takes a long time to complete.
  • Scheduled builds are triggered irrespective of any code changes in the source code repositories.

See Single daily build.

 

条件付きビルド トリガー

この機能は、既存のプランを設定する場合にのみ使用できます。

このプランのビルドを実行できるのは、指定された他のプランがその時点で完了している場合のみです。このプランをビルドする前に、それらのプランが正常にビルドされている必要があります。「プラン ビルド依存関係のセットアップ」も参照してください。

プランには複数のトリガーが設定されている場合があり、それぞれが異なるトリガー条件を持つ可能性があるため、トリガーの 1 つが現在ブロックされている場合でも、別のトリガーによってプラン ビルドが開始される可能性があることに注意してください。

ビルド トリガー条件を指定するには、次の手順に従います。

  1. Bamboo のヘッダーから [Build (ビルド)] > [All build plans (すべてのビルド プラン)] の順に選択します。
  2. リスト内でプランを見つけ、編集アイコン () をクリックして、プランの設定ページを表示します。
  3. [Triggers (トリガー)] タブをクリックしてから、既存のトリガーまたは [Add trigger (トリガーを追加)] をクリックします。
  4. [Trigger conditions (トリガー条件)] で、[Only run Build if other Plans are currently passing (他のプランが現在完了している場合にのみビルドを実行する)] を選択します。
  5. 完全なキーを追加して、他のプランを 1 つ以上指定します。

最終更新日 2017 年 4 月 26 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.