All Versions
Bamboo 5.13Bamboo 5.7.x
Bamboo 5.6.x
More...
Triggering a build on code check-in has the advantage of placing minimal load on your Bamboo server, but requires that your source-code repository is configured to fire an event to the Bamboo server.
Step 1. Configure your source repository
commitinfo and loginfo.
commitinfo add a line like this:
^jira(/|$) /pathto/preCommit.sh
loginfo add a line like this:
^jira(/|$) /pathto/postCommitBuildTrigger.sh %{} http://bambooserver JIRA-MAIN JIRA-BRANCH
hooks/post-commit trigger file with something like:
/pathto/postCommitBuildTrigger.sh http://bambooserver JIRA-MAIN JIRA-BRANCH
triggerName change-commit //myDepot/... "/usr/local/bin/postCommitBuildTrigger.sh http://bambooServer/ MYPLAN-DEFAULT"
/scripts folder of your Bamboo Installation Directory. If you are using Bamboo EAR-WAR 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.
Step 2. Configure Bamboo to trigger a build on code check-in
Trigerring 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.
Screenshot: 'Plan Configuration--Source Repository-Build Strategy: Repository triggers the build when changes are committed'