|
On this page:
 |
|
|
Configuring a New Local Server JDK Capability
Before you begin:
To configure a new local server JDK capability:
- Click the 'Administration' link in the top navigation bar.
- Click the 'Server Capabilities' link in the left navigation column to display the Server Capabilities page, which lists all local server capabilities currently defined in your Bamboo system.
- In the Add Capability section at the end of the page (see screenshot below), select 'JDK' from the 'Capability Type' dropdown list.
- In the 'JDK Label' field, type a name/label for the JDK, which Bamboo presents in the 'Build JDK' dropdown list whenever a Job's builder is configured.
- In the 'Java Home' field, type the location of the JDK Home Directory.
- Click the 'Add' button. This will verify whether the JDK and Path you have specified are valid. If they are not, re-enter the values and then click the 'Add' button again.
Configuring a New Shared Local Remote JDK Capability
To configure a new shared remote JDK capability:
- Click the 'Administration' link in the top navigation bar.
- Click the 'Agents' link in the left navigation column to display the Agents page, which lists all Local and Remote Agents that currently exist in your Bamboo system.
- In the Remote Agents section, click the 'Shared Remote Capabilities' link at the right. The Shared Remote Capabilities page is displayed, showing a list of all shared remote capabilities currently defined in your Bamboo system.
- In the Add Capability section at the end of this page (see screenshot below), select 'JDK' from the 'Capability Type' dropdown list.
- In the 'JDK Label' field, type a name/label for the JDK, which Bamboo presents in the 'Build JDK' dropdown list whenever a Job's builder is configured.
- In the 'Java Home' field, type the location of the JDK Home Directory.
- Click the 'Add' button. This will verify whether the JDK and Path you have specified are valid. If they are not, re-enter the values and then click the 'Add' button again.

Screenshot: 'Add Capability — JDK'

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 1.5), 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/jdk1.5.0_07') — this JDK capability indicates that an agent(s) is capable of running builds with any JDK requirement.
- JDK 1.5 (where 'JDK Label' = '
JDK 1.5' and 'Java Home' = '/usr/java/jdk1.5.0_07') — this JDK capability indicates that an agent(s) is capable of running builds with a JDK 1.5 requirement or any point version of JDK 1.5, e.g. 1.5.0_07, 1.5.0_08, etc.
- JDK 1.5.0_07 (where 'JDK Label' = '
JDK 1.5.0_07' and 'Java Home' = '/usr/java/jdk1.5.0_07') — this JDK capability indicates that an agent(s) is only capable of running builds with a JDK 1.5.0_07 requirement.
- If you have set up redundant JDK capabilities, you can view the list of JDK capabilities set up in Bamboo and delete any unwanted JDK capabilities.
Related Topics
Configuring an Agent-specific JDK Capability