ソース コードの変更に対してリポジトリをポーリングするように Bamboo を設定できます。次のいずれかで実行します。
- 定期 (例: 180 毎秒)
- 予定ベース (例: 毎月第 2 日曜日の午前 5:00)
Bamboo がソース コード内に変更を検出すると、計画のビルドがトリガーされます。
ソース コードの変更に対してリポジトリをポーリングするように Bamboo を設定する方法は次のとおりです。
- ダッシュボードをクリックし、すべてのプラン タブをクリックします。
- Locate the plan in the list and click the edit icon () to display the plan's configuration pages.
- [トリガー] タブをクリックしてから、既存のトリガーまたは [トリガーを追加] をクリックします。
- オプションで、トリガーの説明を入力します。
- [トリガーのタイプ] > [Polling the Repository for changes (リポジトリをポーリングして変更を確認)] を選択します。
- Bamboo は、[ソース リポジトリ] タブで以前に設定したとおり、計画に利用可能なリポジトリを表示します。このトリガーが適用されるリポジトリを選択します。
ポーリング戦略を選択します。
定期 Bamboo がリポジトリの変更をチェックする間隔の [Polling Frequency (ポーリング頻度)] の値 (秒単位) を入力します。 スケジュール済み Click the edit icon ( ) to use the Schedule Editor to set the polling schedule.
Note, this is a schedule for polling your repository: a plan build will only be triggered if there are source code changes. See Triggering builds.
Note that for the Cron Expression option, a cron expression consists of 6 mandatory and one optional field. The fields in sequential order are: seconds, minutes, hours, day-of-month, month, day-of-week and (optional) year. For example,0 0 1 ? * 1#2
. For information on Cron expressions, see this FAQ: Constructing a cron expression in Bamboo[Save Trigger (トリガーを保存)] をクリックします。