Configure Mercurial repository to trigger build

David Beer July 3, 2012

Hi

I would like to configure my mercurial repositories to trigger specific builds when committed to a certain branch. When I looked at the Bamboo documentation here| https://confluence.atlassian.com/display/BAMBOO/Repository+triggers+the+build+when+changes+are+committed it mentioned using the scripts available with the Bamboo. None of the scripts provided give an example of mercurial or git. And the downlink given is not found.

3 answers

1 accepted

0 votes
Answer accepted
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 5, 2012

Try using the script for Subversion and edit the Hg respository's .hg/hgrc settings file with something like:

[hooks]
changegroup.update = /pathto/postCommitBuildTrigger.sh http://bambooserver JIRA-MAIN JIRA-BRANCH
0 votes
David Beer July 8, 2012

Thanks for this.

0 votes
PiotrA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2012

I've updated the link (Scripts.zip) visible on the confluence page you mention - please re try downloading. You should find 'postCommitBuildTrigger.sh' script there.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events