Jenkins Job Label Expression: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
Defines a logical expression which determines which [[Jenkins Concepts#Agent|agents]] may execute builds for a project. This expression, when tested against the ''agent name'' and ''labels'' of each available agent, will be either true or false. If the expression evaluates to true, then that agent will be allowed to execute builds of this project. | Defines a logical expression which determines which [[Jenkins Concepts#Agent|agents]] may execute builds for a project. This expression, when tested against the ''agent name'' and ''labels'' of each available agent, will be either true or false. If the expression evaluates to true, then that agent will be allowed to execute builds of this project. | ||
In general, using the agent names should be avoided. Labels should be used instead. | In general, using the agent names should be avoided. Labels should be used instead. Using labels removes the need to re-configure the label expression entered here each time that you add, remove, or rename agents. |
Revision as of 20:27, 23 April 2018
Internal
Overview
Defines a logical expression which determines which agents may execute builds for a project. This expression, when tested against the agent name and labels of each available agent, will be either true or false. If the expression evaluates to true, then that agent will be allowed to execute builds of this project.
In general, using the agent names should be avoided. Labels should be used instead. Using labels removes the need to re-configure the label expression entered here each time that you add, remove, or rename agents.