| OK well in that case you can't do that. Each shell script executes in its own environment. You can test this quickly like this to confirm: Given this configuration: This is the output: Notice that the first shell is able to read the environment variable but the second one is not. I suggest you migrate your job to a pipeline job which has built in support for passing environment variables or use the Stackoverflow link above for more help. Thanks. |