
hudson.model.AbstractProject.help-assignedLabelString.html Maven / Gradle / Ivy
Show all versions of hudson-core Show documentation
If you want to always run this project on a specific node/slave, just specify its name.
This works well when you have a small number of nodes.
As the size of the cluster grows, it becomes useful not to tie projects to specific slaves,
as it hurts resource utilization when slaves may come and go. For such situation, assign labels
to slaves to classify their capabilities and characteristics, and specify a boolean expression
over those labels to decide where to run.
Valid Operators
The following operators are supported, in the order of precedence.
- (expr)
- parenthesis
- !expr
- negation
- expr&&expr
-
and
- expr||expr
-
or
- a -> b
-
"implies" operator. Equivalent to !a|b.
For example, windows->x64 could be thought of as "if run on a Windows slave,
that slave must be 64bit." It still allows Hudson to run this build on linux.
- a <-> b
-
"if and only if" operator. Equivalent to a&&b || !a&&!b.
For example, windows->sfbay could be thought of as "if run on a Windows slave,
that slave must be in the SF bay area, but if not on Windows, it must not be in the bay area."
All operators are left-associative (i.e., a->b->c <-> (a->b)->c )
An expression can contain whitespace for better readability, and it'll be ignored.
Label names or slave names can be quoted if they contain unsafe characters. For example,
"hudson-solaris (Solaris)" || "Windows 2008"