Env variables defined in the StepEnvironmentContributor are globally accessible?

13 views
Skip to first unread message

Victor Martinez

unread,
Apr 14, 2021, 12:29:07 PM4/14/21
to Jenkins Developers
Hi all,

I'm defining some env variables with the StepEnvironmentContributor but unfortunately I cannot use them with the env.VARIABLE_NAME approach. Although they are accessible when I run an sh step such ash `sh 'echo $VARIABLE_NAME'`


Is that the expected behaviour or I'm doing something wrong? 

Thanks



Victor Martinez

unread,
Apr 14, 2021, 12:46:19 PM4/14/21
to Jenkins Developers
I was doing something wrong and EnvironmentContributor should help with

Sorry for the noise
Reply all
Reply to author
Forward
0 new messages