This documentation relates to an earlier version of Bamboo.
View

Unknown macro: {spacejump}

or visit the current documentation home.

Once you have configured a new JDK capability in your Bamboo system, its label (e.g. '1.5') will appear in the 'Build JDK' drop-down list on the 'Build Resources' tab when you configure a build plan (see Specifying a Plan's Builder). The JDK that you select when you configure a plan will be used for every build that is executed for that plan. That is, the plan can only be built by agents which have a JDK capability whose label is specified in the plan's 'Build JDK' field.

(info) Shared capabilities are inherited by all applicable agents, that is, (shared) local server capabilities are inherited by all local agents, and shared remote capabilities are inherited by all remote agents. Note, however, that the value of a shared capability will be overridden by the value of an agent-specific capability of the same name (if one exists).
(info) Please note, shared remote JDK capabilities are not shared with elastic agents.

To configure a new local server JDK capability,

  1. Click the 'Administration' link in the top navigation bar.
  2. Click the 'Server Capabilities' link in the left navigation column.
  3. The 'Server Capabilities' screen will be displayed, showing a list of all local server capabilities currently defined in your Bamboo system.
  4. Locate the 'Add Capability' section below the list (see screenshot below).
  5. Select 'JDK' from the 'Capability Type' dropdown.
  6. In the 'Label' field, type the name that wish to appear in the 'Builder JDK' drop-down list when a plan is configured.
  7. In the 'Java Home' field, type the location of the JDK Home Directory.
  8. 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.


To configure a new shared remote JDK capability,

  1. Click the 'Administration' link in the top navigation bar.
  2. Click the 'Agents' link in the left navigation column.
  3. The 'Agents' page will be displayed, showing lists of all Local Agents and Remote Agents in your Bamboo system.
  4. Click the 'Shared Remote Capabilities' link in the top right of the 'Remote Agents' section.
  5. The 'Shared Remote Capabilities' screen will be displayed, showing a list of all shared remote capabilities currently defined in your Bamboo system.
  6. Locate the 'Add Capability' section below the list (see screenshot below).
  7. Select 'JDK' from the 'Capability Type' dropdown.
  8. In the 'Label' field, type the name that wish to appear in the 'Builder JDK' drop-down list when a plan is configured.
  9. In the 'Java Home' field, type the location of the JDK Home Directory.
  10. 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 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 Label='JDK', 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 Label='JDK 1.5', 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 Label='JDK 1.5.0_07', 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.)


Screenshot: 'Add Capability --- JDK'