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.)
You can configure a new custom capability for:
- a specific local agent — see Configuring an Agent-specific Custom Capability
- all local agents — see Configuring a Shared Custom Capability
- a specific remote agent — see Configuring an Agent-specific Custom Capability
- all remote agents — see Configuring a Shared Custom Capability
Note that the value of an agent-specific capability overrides the value of a shared capability of the same name (if one exists).