Hi,

I am setting some environment variables via the entrypoint of a dockerfile. 
These variables can be set at earliest during the startup of the container, 
as they include the cpuid.

I have confirmed that the entrypoint is executed at the startup of the 
container, however, inside of the `sh` commands (of the container() steps) 
the environment variables are no longer visible.

My current workaround is using sth. like:

sh 'entrypoint.sh ccache -s'


which then sets the correct env. Does anyone know, what a proper way of 
using such environment variables would be using Jenkins (+Kubernetes) 
plugin?

Or as another question, how exactly are these 'sh' commands executed on the 
container, i.e., how does the jnlp container execute the sh commands on the 
build environment containers? 


Thanks for the help!

-- 
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/0e1eea53-24ba-437e-ba8f-bf4940721834%40googlegroups.com.

Reply via email to