How to retrieve the VcsRevision related to a ResultsSummary in over Bamboo 3.3.0.

I want to know the VCS revision related to a ResultsSummary in over Bamboo 3.3.0.

In Bamboo 3.2.0, ResultsSummary has the method of getVcsRevisionKey().

But in over 3.3.0, the method disappears.

How can I get the VCS revision attached to a Results Summary?

1 answer

1 accepted

I'd try something like:

resultsSummary.getRepositoryChangesets()... iterate :) ...getChanesetId()

Thing is that since 3.3.x the resultSummary have multiple revisions related to one ResultsSummary object (due to "Multiple Repositories" feature in Bamboo 3.3.x) so even if you are using only one repository you have to use additional logic to retrieve the VcsRevision. Speaking of which - would it be valuable to you if we added in Bamboo a method to resultSummary which would return VCS revision of the *default* repository? Something like resultSummary.getDefaultRepositoryVcsRevisionKey() ? Just asking - not sure if this is feasible.

Thank you for your information.

I understood.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,067 views 0 5
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot