jenkinsci / jenkinsci/nodelabelparameter-plugin
[JENKINS-20466] Allow "Possible Nodes" in a Node parameter to be based on a label expression
- Dominant language
- Java
- Stars
- 28
- Forks
- 59
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 3
Description
I have jobs that should only be executed on slaves matching a specific label expression, BUT with the possibility to select a specific slave within this label expression (so a Label parameter instead of a Node parameter is not an option here).
I could be settings the "Possible nodes" in the Node parameter to only those matching my label expression, but my pool of slaves changes quite frequently. When a slave is added or removed from the pool, it would take a long time to edit all my jobs to add/remove this slave.
A solution would be to add a "Allowed label expression" field to the Node parameter, that would show only the slaves matching this label expression when launching the job.
---
Originally reported by clement_denis, imported from: Allow "Possible Nodes" in a Node parameter to be based on a label expression
Raw content of original issue
I have jobs that should only be executed on slaves matching a specific label expression, BUT with the possibility to select a specific slave within this label expression (so a Label parameter instead of a Node parameter is not an option here).
I could be settings the "Possible nodes" in the Node parameter to only those matching my label expression, but my pool of slaves changes quite frequently. When a slave is added or removed from the pool, it would take a long time to edit all my jobs to add/remove this slave.
A solution would be to add a "Allowed label expression" field to the Node parameter, that would show only the slaves matching this label expression when launching the job.
Contributor guide
Assessment
This issue has not been assessed yet.