I've trouble setting an environment variable for a container in an Jenkins pipeline. It seems, that "withEnv" does not work nicely with machines without bash.
Can you confirm that? I cannot find an official statement ;-)
When I run the following snippet on the Jenkins slave it works. But when it is executed in a docker container without BASH "$test" isn't set.
withEnv(["test='asd'"]){
sh 'echo $test'
}