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:
dev_Hakazeandarimu1 authored and GitHub committed 2026-07-20 20:24:00 -06:00
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 &amp;&amp; jdk9</code></dt>
<dd>
Builds of this project may be executed only on any Windows agent that has