How to obtain the SVN revision number for all repositories in a single build plan?

Bamboo 3.3 provides for multiple repositories to be used in a single build plan, which is great!

It seems though, the build specific variable "custom.svn.revision.number" is set with the repository revision of the first repository used in the build plan - this is true even for repository checkout tasks in different jobs.

How can I obtain the SVN revision of all repositories, and pass them to my Ant scripts? Are there some undocumented build specific variables that collect the SVN revision for each repository?

Any ideas appreciated? Thanks!

1 answer

1 accepted

This widget could not be displayed.

Sorry for the late reply. If you look on the Metadata tab for the Jobs result you can see key and values for each repositories name and revision number and each one of these metadata keys can be used as a variable in the build configuration.

Thank you James!....just what I was looking for.

Cheers

-D

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...

173 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