Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Mercurial repository URL - build variables

Adam Woods October 2, 2011

Hi,

We're using Bamboo 3.2 and are trying to build a specific Mercurial tag or changeset for our release builds. The Repository URL on the source repository configuration screen supports the #revision syntax, which is great. What I would like to do is parametize this using the bamboo build variables.

Something like the following:

http://path/to/repository#${bamboo.tagToBuild}

However I get a malformed url error message when I attempt to do this. To me, this seems the simplest way to achieve builds based on a particular tag, but I'd like to know if we're trying to do this the wrong way.

Can anyone please advise how they have overcome with this particular problem? Or is this something unique to us, and possibly indicating that we should be following a different process?

Cheers,

Adam

2 answers

1 accepted

2 votes
Answer accepted
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.
October 4, 2011

Use the tag in the branch field instead.

i.e. :

repositoryUrl = http://path/to/repository

branch = ${bamboo.tagToBuild}

2 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.
October 3, 2011

Seems to me like a bug in Bamboo. I've raised https://jira.atlassian.com/browse/BAM-9908 in the Bamboo bug tracker to investigate this issue further.

regards,

PS

Adam Woods October 3, 2011

Thanks PS.

What's the chances of it being addressed in 3.3? And are you aware of any work arounds that will help us out for now?

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.
October 3, 2011

what will happen, if you use following:

repositoryUrl = http://path/to/repository

branch = ${bamboo.tagToBuild}

Would it work?

ad chances in 3.3 -> I don't think it would be adressed in 3.3. Maybe in 3.3.1 I'd say.

Adam Woods October 4, 2011

Doh! Looks like I didn't read the documentation properly. It quite clearly says that you can place a tag in the branch field.

Thanks for your help - specifying a bamboo build variable in the branch field works a treat!

If you move the comment into an answer I can mark it as accepted.

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.
October 4, 2011

moved... :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events