-
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