-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
environment variable substitution for config files in /usr/share/jenkins/ref/ #448
Comments
Alternatively you can using |
I have similar requirement, basically I want jenkins container configuration to be different for different Kuberentes project . example: jenkins/sonarqube for one Kuberentes namespace will be having different names vs second namespace (jenkins/sonarqube). However I want to build standard image where based on environment variable I can update hudson.plugins.sonar.SonarGlobalConfiguration.xml if this can be achieved by groovy option, could you explain little more on how to use goovy.init.d Regards |
I think this is not specific to the container but a more generally useful suggestion. |
https://github.com/jenkinsci/plugin-installation-manager-tool/releases/tag/2.12.7 new features: * Support output format for list option (jenkinsci#448) @cronik Also includes dependency updates * Use plugin installation manager tool 2.12.7. Can generate a plugins.txt from the contents of a plugins directory.
It would be nice if environment variables (or another placeholder replacement mechanism) could be used for the config files in /usr/share/jenkins/ref/. For example:
hudson.tasks.Mailer.xml:
jenkins.model.JenkinsLocationConfiguration.xml:
I would like to provide these default configuration files in /usr/share/jenkins/ref/, but the http://jenkins.example.com/ should be specified dynamically when running the container (e.g. for another instance in a test environment).
So I'd like to be able to write something like
<jenkinsUrl>${JENKINS_URL}</jenkinsUrl>
or maybe with a default value
<jenkinsUrl>${JENKINS_URL-http://jenkins.example.com/}</jenkinsUrl>
and then specify a value at runtime with
docker run -e "JENKINS_URL=http://jenkins-test.example.com/"
What do you think?
The text was updated successfully, but these errors were encountered: