|
To do this, run the following commands:
cd svn-repository-containing-the-build-source-code cd into the hooks/ directory |
The Subversion post-commit file is not installed by default. If it does not exist, make a copy of the post-commit.tmpl file in the hooks/ directory, name it post-commit and make it executable:
cp post-commit.tmpl post-commit chmod a+rx post-commit |
Add a line like the following to the post-commit file, for running Bamboo's build trigger script file.
/path-to-your-bamboo-installation/scripts/svn-triggers/postCommitBuildTrigger.sh base-url BUILD-KEY |
where:
base-url is the base URL of the Bamboo server. For example:
http://<name-of-machine>:8085 |
BUILD-KEY is the key of the Bamboo plan to be executed.Make Bamboo's build trigger script file executable (using chmod) so that the Subversion user can execute it.
Conduct a 'test' commit. Bamboo should start building the relevant plan after a few seconds.
The Bamboo log file should contain an entry like this:
[INFO] com.atlassian.bamboo.build.UpdateAndBuild - Bamboo build was triggered by remote http call from 127.0.0.1 |
Build Trigger Security — Bamboo will only accept remote build triggers if the triggers originated from the Subversion server(s) identified in the Subversion Repository URL of any Bamboo plans. Requests originating from other Subversion servers will be rejected by Bamboo.