It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

On Repository Naming Rule in Bamboo 3.4.x

Akira Tsuchiya Feb 15, 2012

I want to discern multiple repositories in a Plan.

A ResultsSummary has multiple List<RepositoryChangeset> accordingly to the repositories in a Plan.

To know which RepositoryChangeset is related to which repository, I guess repositoryChangeset.getRepositoryDefinition().getName() is the only way.

It returns like 'Subversion Web', 'Subversion Repository' and so on.

When the repository is Subversion, the repository name becomes 'Subversion' + ' ' + '[Repository Root Path Name with the first letter upper-cased]'.

Is this right?

2 answers

1 accepted

1 vote
Answer accepted
Przemek Bruski Atlassian Team Feb 15, 2012

Hmm, how about RepositoryChangeset.getRepositoryDefinition().getId() and use it to get the repository using

PlanHeleper.getRepositoryDefinitionMap() ? You'll get a RepoDef and you can call getRepository on it.

0 votes
Przemek Bruski Atlassian Team Feb 15, 2012

The repositories can be renamed, so you shouldn't rely on naming. If you want to identify a repository, you should use getId instead of getName.

Akira Tsuchiya Feb 15, 2012

Sorry for my some misunderstandins.

I want to know which RepositoryChangeset obtained by ResultsSummary#getRepositoryChangesets()

is related to which Repository obtained by PlanHelper.getRepositories(getPlan()).

The repositoryChangeset.getRepositoryDefinition().getId() is good, but on the other hand SvnRepository seems not to have getId().

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

10,288 views 47 48
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you