transfer any master proxy related envs that the remoting jar uses to … #321
Conversation
Thanks! |
Roger that @carlossg Would you prefer the config checkbox be in the "advanced" section, or are you fine with it being a peer with the other config settings? |
Also, as an fyi, I briefly toyed with tweaking org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStepExecution to propagate the env vars for users of this plugin's pipeline DSL, but sided on being conservative, and left it alone. But of course let me know if you would like an update there as well. |
…the pod templates
ed49357
to
acb679c
opt-in addition pushed |
bump @carlossg |
I have a Jenkins running outside of k8s and if I have a no_proxy set in my docker jnlp image and whether I opt-in or opt-out of this setting, I can't set a no_proxy environment variable neither via global variables in Jenkins nor setting env vars for the pod template, nor in the job itself. The job running 'env' never shows a no_proxy env var set. Though a no_proxy setting in the pod template does affect the starting of the jnlp container, (you can see it in container) but doesn't show up being set in the job. Other env vars I have set like NO_PROXY show up fine. Just no_proxy isn't set. Plugin version 1.14.9 |
…the pod templates
hey @carlossg - this PR as much is intending to initiate discussion; @bparees and I have had a recent customer situation where they are leverage jenkins on openshift with http_proxy and no_proxy employed
one of the customer's complaints was why could he not set the env's the remoting jar was looking for on the master and then have them propagated by default to each of his pod templates
as I mentioned in the TODO I can certainly add some level of on/off configuration switch if desired (preserving default behavior, etc.) but wanted to get some form of general consensus before investing addition time
thanks