jenkinsci / jenkinsci/nodelabelparameter-plugin

[JENKINS-25679] dynamic generation of default node/label parameter

Open
#528 0 comments 0 reactions 0 assignees View on GitHub
component:dynamicparameter-plugin component:nodelabelparameter-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
28
Forks
59
Avg merge
1h 24m
Merged PRs (30d)
3

Description

We have builds that run on dynamic slaves (ec2 instances on AWS). The nodes that the builds run on are currently static. This means that the same instance type is used every time each of these builds run. We would like to make this more dynamic. For example, when the build runs at night we would choose to use a cheaper (and slower) instance type.

It occurred to me that a combination of the plugins dynamicparameter and nodelabelparameter could achieve this requirement. This would result in a build parameter that specifies the default node/label that the build will run on. The default value would be determined by running a supplied groovy script (on master) when the build is triggered.

I don't know if this is in scope for either plugin, or if there is a better way to achieve what I am trying to do. Will be happy to hear suggestions.

---
Originally reported by donsi, imported from: dynamic generation of default node/label parameter


  • status: Open
  • priority: Minor
  • component(s): dynamicparameter-plugin, nodelabelparameter-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251210-235911

Raw content of original issue

We have builds that run on dynamic slaves (ec2 instances on AWS). The nodes that the builds run on are currently static. This means that the same instance type is used every time each of these builds run. We would like to make this more dynamic. For example, when the build runs at night we would choose to use a cheaper (and slower) instance type.

It occurred to me that a combination of the plugins dynamicparameter and nodelabelparameter could achieve this requirement. This would result in a build parameter that specifies the default node/label that the build will run on. The default value would be determined by running a supplied groovy script (on master) when the build is triggered.

I don't know if this is in scope for either plugin, or if there is a better way to achieve what I am trying to do. Will be happy to hear suggestions.

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.