You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-28380] Give expression examples for restricting where builds can run #21113
For the check-box "Restrict where this project can be run," there is nothing in the help that mentions what kind of expressions you can write.
From trial and error, I deduced that "a || b" means "use either a or b as build nodes." I expected a comma, like other fields (eg. projects that can access archives, projects to run after this build, etc.) I'm sure there are other valid expressions, such as using "*".
Can you please update the help for this field to include some examples? I ended up looking at the source on GitHub and guessed this from the use of Antlr.
For the check-box "Restrict where this project can be run," there is nothing in the help that mentions what kind of expressions you can write.
From trial and error, I deduced that "a || b" means "use either a or b as build nodes." I expected a comma, like other fields (eg. projects that can access archives, projects to run after this build, etc.) I'm sure there are other valid expressions, such as using "*".
Can you please update the help for this field to include some examples? I ended up looking at the source on GitHub and guessed this from the use of Antlr.
environment: Jenkins ver. 1.609. I don't know the JRE or OS, sorry (my guess in Windows OS) because I don't manage these machines.
The original comment from the issue report seems incorrect to me. It says:
For the check-box "Restrict where this project can be run," there is nothing in the help that mentions what kind of expressions you can write.
The help exists and the examples exist. The existing help for "Restrict where this project can be run" states how to find the help. The help text says:
The help text for the Label Expression field, shown when this option is checked, provides more detailed information on how to specify agent criteria.
The user can see the existing help with these steps in the "Configure" page of a freestyle project:
1. Open help of the "Restrict where this project can be run" checkbox
2. Check the "Restrict where this project can be run" checkbox to see the help for that field, including the phrase:
The help text for the Label Expression field, shown when this option is checked, provides more detailed information on how to specify agent criteria.
3. Expand the help for the "Label expression" field
Two additions are proposed to the existing text in pull request:
Those two additions do not address the first sentence in the description of this issue because the description is incorrect. The help is available. It is attached to the "Label expression" field instead of being attached to the "Restrict where this project can be run" field.
Activity
jenkins-infra-bot commentedon May 18, 2015
Raw content of original comment:
I'm fairly sure this help existed.
adityasah104 commentedon Dec 23, 2025
Is this issue still active?
MarkEWaite commentedon Jul 20, 2026
The original comment from the issue report seems incorrect to me. It says:
The help exists and the examples exist. The existing help for "Restrict where this project can be run" states how to find the help. The help text says:
The user can see the existing help with these steps in the "Configure" page of a freestyle project:
1. Open help of the "Restrict where this project can be run" checkbox
2. Check the "Restrict where this project can be run" checkbox to see the help for that field, including the phrase:
3. Expand the help for the "Label expression" field
Two additions are proposed to the existing text in pull request:
Those two additions do not address the first sentence in the description of this issue because the description is incorrect. The help is available. It is attached to the "Label expression" field instead of being attached to the "Restrict where this project can be run" field.
Add expression examples to "Restrict where builds can run" help (#27117)