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

How to get from PlanRepositoryDefinition to an SVN or Git repository object?

In the past I developed a Bamboo plugin that works with an SVN repository. For example, I got an instance of com.atlassian.bamboo.repository.svn.SvnRepository through (SvnRepository) buildContext.getRepositoryDefinitions().getRepository().
In the 5.14 API much of this has changed. Now I'm confused and I also need to add support for a Git repository.

How can I get from a PlanRepositoryDefinition to a SVN repository and to a Git repository object?

Also, how can I check what type of repository I'm dealing with, given a PlanRepositoryDefinition object?

Some code snippets would be highly appreciated.

Thank you!.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Off-topic

Atlassian Community Guide to A+ Articles

Stop: Articles and permission Article-writing permissions are given to Leaders, Marketplace Vendors, Solutions Partners, Atlassian Team members, and those who are Level 4 + above. But for any aspir...

144 views 10 11
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