When i use a dir step inside the container step i get allways a error: ERROR: script returned exit code -2 Finished: FAILURE jenkinsfile {code:java} #!/usr/bin/env groovy
This seems to be an issue if we use multiple containers with container('golang'){ dir("/go") }
Then the dir command seems to do it in jnlp container so i get a error that /go does not exist.
Please also note that environment variables existing in container golang is "null" if used container('golang'){ dir("${env.GOPATH}") <-- tries to cd into pwd()/null sh("echo $GOPATH" <-- echoes /go (WORKS) }