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

0 votes
Accepted answer

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
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

2,931 views 8 7
View question

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