-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins 2.60.1
Windows master & slave
jre1.8.0_131
pipeline-model-definition 1.1.8
-
-
Pipeline - July/August
Attempting to use multiple substituted values in an environment property causes it to silently fail to be set.
Example script
pipeline { agent any stages { stage('Build') { environment { AAA_Key = "${EXECUTOR_NUMBER} ${BUILD_NUMBER}" AAA_BN_ONLY = "${BUILD_NUMBER}" AAA_EN_ONLY = "${EXECUTOR_NUMBER}" } steps { bat 'set' } } } }
Current output
c:\w\Pipeline Experimental\default>set
AAA_BN_ONLY=36
AAA_EN_ONLY=1
Current workaround is to use withEnv directly, which doesn't appear to suffer from this issue
- depends on
-
JENKINS-42753 Generate runtime model directly from AST model
-
- Closed
-
[JENKINS-45637] Environment vars with multiple substitutions are not set
Labels | New: declarative-variable-and-method-resolution |
Sprint | New: Pipeline - July/August [ 371 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Link |
New:
This issue depends on |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |