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
Posted Jan 15, 2019 in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

259 views 4 1
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