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 |
---|---|
a specific remote agent | |
all local agents | see Configuring a shared custom capability |
all remote agents |
Note that the value of an agent-specific capability overrides the value of a shared capability of the same name (if one exists).