Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

pwhartog
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 29, 2017

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
TAGS
AUG Leaders

Atlassian Community Events