jenkinsci / jenkinsci/nodelabelparameter-plugin

[JENKINS-20466] Allow "Possible Nodes" in a Node parameter to be based on a label expression

Open
#511 3 comments 0 reactions 0 assignees View on GitHub
component:nodelabelparameter-plugin imported-jira-issue priority:major resolution:unresolved
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


  • status: Open
  • priority: Major
  • component(s): nodelabelparameter-plugin
  • label(s): nodelabelparameter
  • resolution: Unresolved
  • votes: 4
  • watchers: 6
  • imported: 20251210-235911

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.