-
Notifications
You must be signed in to change notification settings - Fork 887
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
Missing global environment variables in Jenkins and must be inherited to each Jenkins slave #624
Comments
How is this related to the helm chart? Your question isn't very clear but I would suggest posting on https://community.jenkins.io instead |
@timja - I am using this helm chart and want to enable the environment variable globally by the code and not from the UI. So can you suggest, how this is possible using this helm chart. Manually, I am able to add the environment variables in global properties section under Jenkins configuration but not working with helm. I tried to update values.yaml as below:
|
Use the configuration as code plugin You can configure it and then export the configuration using the export functionality: and then add it to the configuration as code support in the helm chart: |
@timja : JCasC suggestion worked perfectly fine for my use cases. Thanks for your quick response. |
@timja comment above is excellent and helped me understand the way of converting manual configuration to helm chart Just so others know they are on track, my working global variable config looks like this in my
|
@jimsnab --- Thanks for sharing your values.yaml. It worked :) |
Describe the bug
Using this Helm chart, I've been trying to enable/set the Global environment variables in Jenkins (as attached) such as proxy details etc..
By setting up the environment variables under Global properties in Jenkins configuration section, this helps to get those environments values for all the Jenkins slave automatically.
Version of Helm and Kubernetes
Chart version
jenkins-2.329
What happened?
No response
What you expected to happen?
Set the environment variables globally which must be inherited to each Jenkins slave such as proxy details etc...
How to reproduce it
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: