Defining a new JDK capability
Defining a JDK capability on an agent
To define a new agent-specific JDK capability:
- From the top navigation bar select Adminitration > Build resources > Agents.
- Select the name of the required agent.
- Go to the Capabilities tab, and then Add capability.
- Select Capability type > JDK.
- In the JDK label field, type a name/label for the JDK. Bamboo displays this in the Build JDK list whenever a job's builder is configured.
- In the Java home field, type the location of the JDK Home Directory.
- Select Add.
Defining a shared remote JDK capability
Shared remote JDK capabilities are not shared with elastic agents.
To define a new shared remote JDK capability:
- From the top navigation bar select > Build resources > Agents > Shared remote capabilities.
- Select Capability type > JDK.
- In the JDK Label field, type a name/label for the JDK. Bamboo Bamboo displays this in the Build JDK list whenever a job's builder is configured.
- In the Java Home field, type the location of the JDK Home Directory.
- Select Add.
Notes
- Configuring generic JDK capabilities — If you want to indicate that an agent is capable of running builds for a set of related JDKs (e.g. all point versions of JDK 17), you set up generic JDK capabilities to encompass these JDKs.
For example, you can set up the following JDK capabilities for your Bamboo agent(s):- JDK (where 'JDK Label' = '
JDK
' and 'Java Home' ='/usr/java/jdk17.0_07'
) — this JDK capability indicates that an agent(s) is capable of running builds with any JDK requirement. - JDK 17 (where 'JDK Label' = '
JDK 17
' and 'Java Home' = '/usr/java/jdk17.0_07
') — this JDK capability indicates that an agent(s) is capable of running builds with a JDK 17 requirement or any point version of JDK 17, e.g. 17.0_07, 17.0_08, etc. - JDK 17.0_07 (where 'JDK Label' = '
JDK 17.0_07
' and 'Java Home' = '/usr/java/jdk17.0_07
') — this JDK capability indicates that an agent(s) is only capable of running builds with a JDK 17.0_07 requirement.
- JDK (where 'JDK Label' = '
- If you wish to find redundant JDK capabilities, you can view the list of JDK capabilities set up in Bamboo and delete any unwanted JDK capabilities.
- Automatically defined capabilities – This depends on the system environment variables (e.g. '
JAVA_HOME=/opt/java/java_sdk17
') that were present on the machine on which Bamboo was installed:
- On the Bamboo server, environment variables that were present during installation were saved as shared local capabilities in Bamboo.
- On remote agents, environment variables that were present during installation were saved as agent-specific capabilities in Bamboo.
Last modified on Aug 13, 2024
Powered by Confluence and Scroll Viewport.