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

Rewriting Bamboo plugin - replace BuildDefinition.getRepository() method

Jan Vanautgaerden Mar 02, 2015

Hi,

We're trying to finalize the upgrade of our Bamboo environment from 2.6.2 to the latest version of Bamboo. Everything works fine in our new test environment except for a custom made plugin that made use of some methods and classes that got deprecated since then.

We make use of the BuildPlanDefinition interface. This got deprecated and we replaced it with BuildDefinition as documented in the API. That's fine, but we also made use of the getRepository() method within this interface. Since, 3.3 this method disappeared from the API and in some other methods, I read: 'since 3.3 obsolete due to introduction of Multiple Repositories' but it is nowhere indicated which methods I should make use of.

Can you help us out what we can do to get the repository out of our plans in our custom plugin? It's not clear how to use these Multiple Repositories in the API or how our code should be rewritten starting from the deprecated getRepository method...

Thanks for your help,

Jan

1 answer

0 votes
Krystian Brazulewicz Atlassian Team Mar 09, 2015

You might be looking for 

RepositoryDefinitionManager#getRepositoryDefinitionsForPlan

I assume you've downloaded Bamboo sources and you can browse them to get more details?

Would you mind sharing some details on what your plugin does? I might be able to point you to some concrete examples in Bamboo.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in United States

Unofficial downtown meetup week of June 3 or 4?

Hello everyone!  It's been a while since Houston's had a Atlassian Community Event (formerly Atlassian User Group meeting) so I wanted to gauge interest in an unofficial downtown meetup after wo...

12 views 0 0
View post

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