すべてのバージョン
Bamboo 5.13Bamboo 5.7.x
Bamboo 5.6.x
More...
変更がコミットされるとリポジトリがビルドをトリガーするように設定するには、次の 2 つの変更が必要です。
On this page:
To configure your source repository:
commitinfo and loginfo.For commitinfoadd a line like this:
^jira(/|$) /pathto/preCommit.sh
ここで、「jira」は自分のモジュールです。
For loginfoadd a line like this:
^jira(/|$) /pathto/postCommitBuildTrigger.sh %{} http://bambooserver JIRA-MAIN JIRA-BRANCH
ここで、JIRA-MAIN と JIRA-BRANCH はトリガーする Bamboo 計画、JIRA はプロジェクト キー、BRANCH または MAIN は計画キーです。
For Subversion, edit the Subversion respository's hooks/post-committrigger file with something like:
/pathto/postCommitBuildTrigger.sh http://bambooserver JIRA-MAIN JIRA-BRANCH
For Perforce, add the script as a change-commit trigger.
triggerName change-commit //myDepot/... "/usr/local/bin/postCommitBuildTrigger.sh http://bambooServer/ MYPLAN-DEFAULT"
For Mercurial, edit the Hg respository's .hg/hgrcsettings file with something like:
[hooks] changegroup.update = /pathto/postCommitBuildTrigger.sh http://bambooserver JIRA-MAIN JIRA-BRANCH
For Git, edit the Git respository's .git/hooks/post-receivetrigger file with something like:
/pathto/postCommitBuildTrigger.sh http://bambooserver JIRA-MAIN JIRA-BRANCH
/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/」を適切な場所に変更します。始める前に
コードのチェック インでビルドをトリガーするように Bamboo を設定する方法は次のとおりです。
Screenshot above: Build Strategy: Repository triggers the build when changes are committed
Triggering a Plan Build when Code is Updated
Polling the Repository for Changes