-
Improvement
-
Resolution: Unresolved
-
Major
-
None
Currently EnvStep only accepts String array.
But it would be nice if it could accept Map<String, String> too
and convert it to a String array.
Right now I have to do this in a shared library.
def call(Closure body) {
deleteDir()
def scmVars = checkout scm
def list = []
scmVars.each { k, v -> list << "${k}=${v}" }
withEnv(list) {
body()
}
}
- is duplicated by
-
JENKINS-54930 withEnv should accept Map as well as List
-
- Closed
-
- relates to
-
JENKINS-27901 Standard form control for string collections
-
- Open
-
- links to
[JENKINS-46124] EnvStep convert map to list
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Component/s | New: workflow-scm-step-plugin [ 21717 ] |
Component/s | Original: workflow-scm-step-plugin [ 21717 ] |
Link | New: This issue relates to JENKINS-27901 [ JENKINS-27901 ] |
Link |
New:
This issue is duplicated by |
Assignee | New: Devin Nusbaum [ dnusbaum ] |
Remote Link | New: This issue links to "workflow-basic-steps-plugin #105 (Web Link)" [ 24345 ] |
Assignee | Original: Devin Nusbaum [ dnusbaum ] | New: Joseph Petersen (old) [ casz ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |