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

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

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
Community showcase
Posted in United States

Live! - Austin ACE -- Summer BASH 2019

Hey Austin! Come join us for our 2019 Atlassian Community Summer BASH as we transition ourselves into party status! Bring an attachment, log a great time, and collaborate with new friends as we celeb...

9 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