Hi Colleagues,
Is there any clarification on the docs regarding special characters (i.e. space, newline, or quotes) and their use on dockerEnvVars?
Reading the code, it seems that any env variable with a space would be interpreted as a two different parameters to the docker command.
|
if (dockerEnvVars) { |
|
dockerEnvVars.each { String k, v -> |
|
options.add("--env ${k}=${v.toString()}") |
|
} |
|
} |
and then
Hi Colleagues,
Is there any clarification on the docs regarding special characters (i.e. space, newline, or quotes) and their use on
dockerEnvVars?Reading the code, it seems that any env variable with a space would be interpreted as a two different parameters to the docker command.
jenkins-library/vars/dockerExecute.groovy
Lines 323 to 327 in 786c234
and then
jenkins-library/vars/dockerExecute.groovy
Line 345 in 786c234