How to retrieve Server Capabilities values in a ChainActionSupport

Akira Tsuchiya
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2012

I want to retrieve a custom capability value defined in the 'Bamboo Administration' -> 'Server Capabilities'

in a ChainActionSupport.

What class should I use?

1 answer

1 accepted

1 vote
Answer accepted
bmccoy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2012

Hi,

You should be able to inject the com.atlassian.bamboo.v2.build.agent.capability.CapabilityContext class into your action. This returns you any capabilities available at the time of calling. As your ChainActionSupport class runs on the server, you will get the server capabilities.

Cheers,

Brydie

Akira Tsuchiya
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 12, 2012

Thank you for your advice.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events