-
Improvement
-
Resolution: Duplicate
-
Major
-
None
In order to support a number of use cases, we need a way to define variables that can be accessed across different steps blocks.
As a talking point, here's what someone was trying to do:
pipeline { agent { node label: 'master' } stages { stage('Allocate workspace') { steps { script { def extWorkspace = exwsAllocate 'diskpool1' } } } stage('Build') { steps { parallel( "a": { node(label: 'a') { exws (extWorkspace) { sh 'ls -la' } } }, "b": { node(label: 'b') { exws (extWorkspace) { sh 'ls -la' } } } ) } } } }
- duplicates
-
JENKINS-44376 Ability to set variables shared between stages
-
- Open
-
[JENKINS-43408] Provide a standardized way of dealing with variables
Epic Link | New: JENKINS-36291 [ 172300 ] |
Assignee | Original: James Dumay [ jamesdumay ] |
Assignee | New: Keith Zantow [ kzantow ] |
Epic Link | Original: JENKINS-36291 [ 172300 ] |
New:
|
Link | New: This issue duplicates JENKINS-44376 [ JENKINS-44376 ] |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Fixed but Unreleased [ 10203 ] |