All Versions
Bamboo 5.13Bamboo 5.7.x
Bamboo 5.6.x
More...
Configuring the repository to trigger the build when changes are committed requires two changes:
On this page:
To configure your source repository:
commitinfo and loginfo.For commitinfoadd a line like this:
^jira(/|$) /pathto/preCommit.sh
where "jira" is your module.
For loginfoadd a line like this:
^jira(/|$) /pathto/postCommitBuildTrigger.sh %{} http://bambooserver JIRA-MAIN JIRA-BRANCH
where JIRA-MAIN and JIRA-BRANCH are the Bamboo plans that you would like to trigger, JIRA being the project key and BRANCH or MAIN being the plan key.
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' is in '/usr/bin/'; if this isn't the case for your repository (e.g. Solaris 10 has it in /usr/sfw/bin/), edit the scripts and change '/usr/bin/' to the appropriate location.Before you begin:
To configure Bamboo to trigger a build on code check in:
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