You can configure a build plan in Bamboo so it will run when code is committed or pushed to the source repository. This is one of the methods available for triggering builds in Bamboo.
"Repository triggers the build when changes are committed" has the advantage of placing minimal load on Bamboo and the VCS (because Bamboo doesn't need to poll the repository repeatedly). However, it requires that your source repository is configured to send an event to Bamboo (which the configured plan will 'listen for').
The overall process is: a commit, or push, to the repository causes a post-commit message to be sent to Bamboo. Bamboo responds by checking the repository for unbuilt changes. If changes are found, Bamboo triggers a build.
Add the Bamboo hook to your repository in Bitbucket. No further action is necessary on your local repository. Each push of new commits in to Bitbucket will trigger the build based on your configuration.
Edit the Git respository's .git/hooks/post-receive trigger file with something like:
If you're using the BitbucketBamboo post-push hook, ensure that the user you are using to authenticate triggering the build has the 'build' permission on the plan you are attempting to trigger.
コードのチェック インでビルドをトリガーするように Bamboo を設定する方法は次のとおりです。
ダッシュボードをクリックし、すべてのプラン タブをクリックします。
リスト内で計画を見つけ、編集アイコンをクリックして、計画の設定ページを表示します。
[トリガー] タブをクリックしてから、既存のトリガーまたは [トリガーを追加] をクリックします。
オプションで、トリガーの説明を入力します。
[トリガーのタイプ] > [Repository triggers the build when changes are committed (変更がコミットされるとリポジトリがビルドをトリガー)] を選択します。
リポジトリのプライマリ IP アドレス以外からのコミット後メッセージに対して Bamboo をトリガーさせる場合のみ、[Trigger IP Addresses (トリガー IP アドレス)] に IP アドレスを入力します。
If you use a Mercurial or Git repository then you must type the IP address of your repository host in Trigger IP Addresses. For Bitbucket the current outbound IP addresses can be found at Access Bitbucket from Behind a Firewall