Skip to content

Escaping Characters in DockerEnvVars #5606

@sap-lh

Description

@sap-lh

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

return options.join(' ')

Metadata

Metadata

Assignees

No one assigned

    Labels

    stalemarks stale issues and pull requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions