Custom capabilities can be used to control which Jobs will be built by a particular agent. For example, if the builds for a particular Job should only run in a Windows environment, you could create a custom capability 'operating.system=WindowsXP ' for the appropriate agent(s), and specify it as a requirement for this Job.
(See Configuring a Job's Requirements.)
An agent-specific capability is a capability that applies to one agent only. Note that the value of an agent-specific capability will override the value of a shared capability of the same name (if one exists). |
On this page: |
Configuring a New Agent-Specific Custom Capability
To configure a new agent-specific custom capability:
- Navigate to the desired agent, as described in Viewing an Agent.
- Click the 'Add Capability' link in the top right of the 'Agent-Specific Capabilities' section. The 'Add Capability' page will be displayed (see screenshot below).
- Set the 'Capability Type' field to 'Custom'.
- In the 'Key' field, type the key for your new custom capability.
- In the 'Value' field, type the value of your new custom capability.
- Click the 'Add' button.
Screenshot above: Adding an agent-specific custom capability