Mercurial repository URL - build variables

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

This widget could not be displayed.

Use the tag in the branch field instead.

i.e. :

repositoryUrl = http://path/to/repository

branch = ${bamboo.tagToBuild}

This widget could not be displayed.

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

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?

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.

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

171 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you