Copy the scripts to your repository. If you are using the Bamboo distribution, the scripts are located in the /scripts folder of your Bamboo Installation Directory. If you are using Bamboo EAR-WAR distribution, you can find them in the /repositoryScripts folder. You can also download the scripts by following this link.
リポジトリが実行されているオペレーティング システムによっては、スクリプトの編集が必要になることがあります。スクリプトは、「wget」が「/usr/bin/」にあると仮定します。これが自分のリポジトリに当てはまらない場合 (たとえば Solaris 10 では /usr/sfw/bin/ にある)、スクリプトを編集して、「/usr/bin/」を適切な場所に変更します。
Enable Bamboo's remote API so that the scripts can use Bamboo's REST-style remote API to access Bamboo's data.
2. Configuring Bamboo to trigger a build on code check in
始める前に
Triggering a build when there is no update — Bamboo will ignore the build triggers, if the local working copy and the repository copy have the same revision numbers. When testing your build triggers, please check that the local working copy is not the latest version - in which case, no further action will be taken.
コードのチェック インでビルドをトリガーするように Bamboo を設定する方法は次のとおりです。
ダッシュボードをクリックし、すべてのプラン タブをクリックします。
リスト内で計画を見つけ、編集アイコンをクリックして、計画の設定ページを表示します。
[トリガー] タブをクリックしてから、既存のトリガーまたは [トリガーを追加] をクリックします。
オプションで、トリガーの説明を入力します。
[トリガーのタイプ] > [Repository triggers the build when changes are committed (変更がコミットされるとリポジトリがビルドをトリガー)] を選択します。
Only enter an IP address in Trigger IP Addresses if you want Bamboo to receive post-commit notifications from other than the primary IP address for the repository.
If you use a Mercurial or Git repository then you must type the IP address of your repository host in Trigger IP Addresses.