I'm trying to do something like this:
sh (1) gives me:
all is good so far
sh (2) gives me:
which is already confusing
sh (3) gives:
I have couple of questions about this:
- why printenv and echo in sh(2) show different results? sounds like printenv prints original env which comes from docker image while echo prints value from host jenkins.
- why withEnv which is executed inside docker container does not modify docker's PATH but modifies Jenkins's PATH.