New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ConfigMapKeyRefEnvVar and fieldRefEnvVar to set env from more sources #297
Conversation
…efEnvVar to create env from pod ObjectField(status.hostIP, status.podIP, ..etc)
Thanks, although I'm trying to focus on #275 instead of adding fields for any possible value which will make the plugin too complex |
Hi @carlossg: Thanks for your info, I wonder when #275 is stable enough that we can use. I implemented this feature because current plugin missed some feature. I also need one feature that in the volume part, sometime to mount a volume, we still need to specify the subPath when multiple volumes are mounted under one mount point. |
#275 is done, please give it a try and see if this is still needed |
HI today I tried with new version with following plugin, but it still lacks the flexilility. I'd want to add some volumes and env, but still not working.
when I check the running pod, no env named
|
First, try without the |
" I think this is picking a different agent, do you have any other agents defined in jenkins config with label jnlp-slave ? try with a new label to see" Yes, I made a new image based on the official jnlp image. |
I meant you have more than one pod template defined in jenkins with the same label so when it runs it may be picking the other one instead of the one defined in your pipeline |
and two sources to create ENV
Refer to https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.9/#envvarsource-v1-core