-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
Please support to pass in the axis values for matrix builds via a variable.
This would enable to calculate the stages to execute during runtime. This is often needed e.g. when in a monorepository certain stages should only be run for applications that changed in a git commit.
pipeline { environment { LOW_ERLANG_VER = '19.3.6.8' MID_ERLANG_VER = '20.3.8.24' HIGH_ERLANG_VER = '22.2' } stages { // ... // Other stages that need the values above // ... stage("Build") { matrix { axes { axis { name 'ERLANG_VERSION' values "{$env.LOW_ERLANG_VER}", "${env.MID_ERLANG_VER}", "${env.HIGH_ERLANG_VER}"
[JENKINS-61047] Matrix: allow to use axis values from variable
Description |
Original:
Please support to pass in the axis values for matrix builds via a variable. This would enable to calculate the stages to execute during runtime. This is often needed e.g. when in a monorepository certain stages should only be run for applications that changed in a git commit. See also: https://issues.jenkins-ci.org/browse/JENKINS-40986?focusedCommentId=381841&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-381841 |
New:
Please support to pass in the axis values for matrix builds via a variable. This would enable to calculate the stages to execute during runtime. This is often needed e.g. when in a monorepository certain stages should only be run for applications that changed in a git commit. See also: https://issues.jenkins-ci.org/browse/JENKINS-40986?focusedCommentId=381841&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-381841 pipeline { environment { LOW_ERLANG_VER = '19.3.6.8' MID_ERLANG_VER = '20.3.8.24' HIGH_ERLANG_VER = '22.2' } stages { // ... // Other stages that need the values above // ... stage("Build") { matrix { axes { axis { name 'ERLANG_VERSION' values "{$env.LOW_ERLANG_VER}", "${env.MID_ERLANG_VER}", "${env.HIGH_ERLANG_VER}" |
Description |
Original:
Please support to pass in the axis values for matrix builds via a variable. This would enable to calculate the stages to execute during runtime. This is often needed e.g. when in a monorepository certain stages should only be run for applications that changed in a git commit. See also: https://issues.jenkins-ci.org/browse/JENKINS-40986?focusedCommentId=381841&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-381841 pipeline { environment { LOW_ERLANG_VER = '19.3.6.8' MID_ERLANG_VER = '20.3.8.24' HIGH_ERLANG_VER = '22.2' } stages { // ... // Other stages that need the values above // ... stage("Build") { matrix { axes { axis { name 'ERLANG_VERSION' values "{$env.LOW_ERLANG_VER}", "${env.MID_ERLANG_VER}", "${env.HIGH_ERLANG_VER}" |
New:
Please support to pass in the axis values for matrix builds via a variable. This would enable to calculate the stages to execute during runtime. This is often needed e.g. when in a monorepository certain stages should only be run for applications that changed in a git commit. See also: https://issues.jenkins-ci.org/browse/JENKINS-40986?focusedCommentId=381841&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-381841 {{pipeline { environment { LOW_ERLANG_VER = '19.3.6.8' MID_ERLANG_VER = '20.3.8.24' HIGH_ERLANG_VER = '22.2' } stages { // ... // Other stages that need the values above // ... stage("Build") { matrix { axes { axis { name 'ERLANG_VERSION' values "{$env.LOW_ERLANG_VER}", "${env.MID_ERLANG_VER}", "${env.HIGH_ERLANG_VER}"}} |
Description |
Original:
Please support to pass in the axis values for matrix builds via a variable. This would enable to calculate the stages to execute during runtime. This is often needed e.g. when in a monorepository certain stages should only be run for applications that changed in a git commit. See also: https://issues.jenkins-ci.org/browse/JENKINS-40986?focusedCommentId=381841&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-381841 {{pipeline { environment { LOW_ERLANG_VER = '19.3.6.8' MID_ERLANG_VER = '20.3.8.24' HIGH_ERLANG_VER = '22.2' } stages { // ... // Other stages that need the values above // ... stage("Build") { matrix { axes { axis { name 'ERLANG_VERSION' values "{$env.LOW_ERLANG_VER}", "${env.MID_ERLANG_VER}", "${env.HIGH_ERLANG_VER}"}} |
New:
Please support to pass in the axis values for matrix builds via a variable. This would enable to calculate the stages to execute during runtime. This is often needed e.g. when in a monorepository certain stages should only be run for applications that changed in a git commit. See also: https://issues.jenkins-ci.org/browse/JENKINS-40986?focusedCommentId=381841&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-381841 {code:java} pipeline { environment { LOW_ERLANG_VER = '19.3.6.8' MID_ERLANG_VER = '20.3.8.24' HIGH_ERLANG_VER = '22.2' } stages { // ... // Other stages that need the values above // ... stage("Build") { matrix { axes { axis { name 'ERLANG_VERSION' values "{$env.LOW_ERLANG_VER}", "${env.MID_ERLANG_VER}", "${env.HIGH_ERLANG_VER}" {code} |
Assignee | Original: Andrew Bayer [ abayer ] |