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). | Related pages: |
To configure a new agent-specific custom capability:
- Navigate to the desired agent, as described in Viewing an agent.
- Click Add Capability in the top right of the 'Agent-Specific Capabilities' section.
- Choose Capability Type > Custom.
- Specify values for Key and Value.
- Click Add.
Screenshot: Adding an agent-specific custom capability