Once you have configured a new JDK capability in your Bamboo system, its label (e.g. '1.5') will appear in the Build JDK list when you configure a job's builder (see Configuring tasks). The JDK you select will be used for every one of that job's builds. That is, the job can only be built by agents which have a JDK capability whose label is specified in the job's Build JDK field. 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). Configuring a new local server JDK capability
始める前に
To configure a new local server JDK capability:
- Click Administration in the top menu bar.
- 左側のナビゲーション パネルで [Server Capabilities (サーバー機能)] をクリックします。
- Choose Capability Type > JDK in the 'Add Capability' section at the end of the page (see screenshot below).
- 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.
- [追加] をクリックします。
Configuring a new shared remote JDK capability
To configure a new shared remote JDK capability:
- Click Administration in the top menu bar.
- 左側のナビゲーション パネルの [Agents (エージェント)] をクリックします。
- In the 'Remote Agents' section, click Shared Remote Capabilities at the right.
- Choose Capability Type > JDK in the 'Add Capability' section at the end of the page (see screenshot below).
- 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.
- [追加] をクリックします。
Screenshot: 'Add Capability — JDK'

注意
- 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 ([JDK ラベル] =「
JDK」および [Java ホーム] =「/usr/java/jdk1.5.0_07」) - この JDK 機能は、エージェントが任意の JDK 要件でビルドを実行できることを示しています。 - JDK 1.5 ([JDK ラベル] =「
JDK 1.5」および [Java ホーム] =「/usr/java/jdk1.5.0_07」) - この JDK 機能は、エージェントが JDK 1.5 要件または JDK 1.5 の任意のポイント バージョン (1.5.0_07、1.5.0_08 など) でビルドを実行できることを示しています。 - JDK 1.5.0_07 ([JDK ラベル] =「
JDK 1.5.0_07」および [Java ホーム] =「/usr/java/jdk1.5.0_07」) - この JDK 機能は、エージェントが JDK 1.5.0_07 要件でのみビルドを実行できることを示しています。
- 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.