When I do
container('mycontainer') { script { def foo = "ls -lah /var" echo "${foo}"
I get the `/var` of jnlp.
Even when inserting `dir('/var')` there is not behavior change.
When I however do `ls -lah /var` in `mycontainer` (via kubectl), I get the output of `mycontainer`.
can you provide the master debug logs ? https://github.com/jenkinsci/kubernetes-plugin/#debugging
Why would you expect a different file system?
You're switching container after all, not pod