mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-26 19:15:09 +00:00
Add expression examples to "Restrict where builds can run" help (#27117)
Document the || operator with a linux||macos example and clarify that wildcards/regex are not supported, addressing JENKINS-28380 / #21113. Co-authored-by: arimu1 <19286898+arimu1@users.noreply.github.com>
This commit is contained in:
1 parent
7295a996c6
commit
411943b3fe
1 file changed
+19
-2
@@ -143,8 +143,11 @@
|
||||
evaluating expressions.
|
||||
</li>
|
||||
<li>
|
||||
Matching labels or agent names with wildcards or regular expressions is
|
||||
not supported.
|
||||
Matching labels or agent names with wildcards (such as
|
||||
<code>*</code>
|
||||
or
|
||||
<code>?</code>
|
||||
) or regular expressions is not supported.
|
||||
</li>
|
||||
<li>
|
||||
An empty expression will always evaluate to
|
||||
@@ -168,6 +171,20 @@
|
||||
)
|
||||
</dd>
|
||||
|
||||
<dt><code>linux || macos</code></dt>
|
||||
<dd>
|
||||
Builds of this project may be executed on any agent that has either the
|
||||
<code>linux</code>
|
||||
label
|
||||
<i>or</i>
|
||||
the
|
||||
<code>macos</code>
|
||||
label (assuming that agents running Linux and macOS have been given the
|
||||
appropriate labels). Note that the separator is
|
||||
<code>||</code>
|
||||
, not a comma
|
||||
</dd>
|
||||
|
||||
<dt><code>windows && jdk9</code></dt>
|
||||
<dd>
|
||||
Builds of this project may be executed only on any Windows agent that has
|
||||
|
||||
Reference in new issue
Block a user