Hello,

I need to use a certain variable in my Shell Build Step that is figured in 
a shell script stored on the node. When I "source" this script in the same 
step in which I need the variable, it works. However sourcing it in the 
EnvInject 
step under Build Environment phase does not seem to transfer the variable 
to the Build Step. Here's how the job is configured:

X . Inject environment variables to the build process

Script Content: source /home/jenkins/setInventoryVar.sh



I can see at this point the output of the script in the console, yet the 
Build Step does not inherit a variable set in Inject Env.

Suggestions are greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dd621d0a-5a08-40a3-913c-54535f12cc5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to