Bamboo でトリガーすると、計画ビルドを自動的に開始できます。Bamboo には次のトリガー メソッドがあります。
Trigger a build when code is updated:
スケジュールに基づいてビルドをトリガーする
Trigger a build depending on the builds of other plans:
- Plan builds are triggered by preceding successful builds of other plans.
- Plan only builds if other specified plans are building successfully.
このページの内容
Note that a plan that has no configured triggers can only be started manually, or if it is dependent on the successful build of another plan.
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. 変更がコミットされるとリポジトリがビルドをトリガーする 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. See Repository triggers the build when changes are committed. Cron ベースのスケジューリング Bamboo will trigger scheduled builds of this plan based on a cron expression. 毎日 1 回のビルド Bamboo will trigger a build of the plan once per day at a specified time. See Single daily build.
条件付きビルド トリガー
This field is only available when configuring an existing plan.
You can choose to run builds of this plan only if other specified plans are currently passing. Those plans must build successfully before this plan will be built. See also Setting up plan build dependencies.
プランには複数のトリガーが設定されている場合があり、それぞれが異なるトリガー条件を持つ可能性があるため、トリガーの 1 つが現在ブロックされている場合でも、別のトリガーによってプラン ビルドが開始される可能性があることに注意してください。
ビルド トリガー条件を指定するには、次の手順に従います。
- ダッシュボードをクリックし、すべてのプラン タブをクリックします。
- Locate the plan in the list and click the edit icon () to display the plan's configuration pages.
- Click the Triggers tab, and click either an existing trigger or Add Trigger.
- Select Only run Build if other Plans are currently passing, under 'Trigger Conditions'.
- 完全なキーを追加して、他のプランを 1 つ以上指定します。
