Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bamboo: How to get an AdministrationConfigurationManager in a CustomPrebuildAction?

I am trying to build a CustomPrebuildAction and need to access the resultsUrl from inside it.

Through similar posts here and elsewhere on the internet I have found that I can piece the resultsUrl together from base url and the plan result key.

I have managed to retrieve the plan result key via the build context, but I can't figure out how to get the base url.

I have read in a different post that I can try to get an AdministrationConfigurationManager injected, but it seems this is only valid for plugin modules of type Task.

In my CustomPrebuildAction I get a dependency injection error.

Does anybody know how to get an AdministrationConfigurationManager in a CustomPrebuildAction or else how to figure out the base url in a different way or even how to get a complete resultsUrl?


Thanks in advance,



1 answer

1 accepted

1 vote
Answer accepted

I managed to get this working by using an AdministrationConfigurationAccessor instead which I retrieved via the ComponentLocator:


public class MyCPBA implements {

private AdministrationConfigurationAccessor administrationConfigurationAccessor = ComponentLocator.getComponent(AdministrationConfigurationAccessor.class);


Seems to work fine, I managed to retrieve the resultsUrl correctly.

AdministrationConfiguration config = administrationConfigurationAccessor.getAdministrationConfiguration();
String resultsUrl = config.getBaseUrl() + "/browse/" + buildContext.getPlanResultKey().toString();





Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

908 views 3 8
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