No way to access CASC_JENKINS_CONFIG or other configuration variables when running Jenkins as a Linux service on a VM
See original GitHub issueJenkins version: 2.150.1 Configuration as Code Plugin version: 1.4 OS: Centos 7.6.1810
When running Jenkins as a Linux service using service jenkins start
, all environment variables including CASC_JENKINS_CONFIG
are stripped away and the jenkins.yaml
configuration file is not loaded.
This can be worked around by moving jenkins.yaml
from its generic location to $JENKINS_ROOT/jenkins.yaml
, but the problem remains for other CasC configuration accessed through environment variables, such as CASC_VAULT_FILE
and other Vault-related values.
Could these config options be provided to Jenkins in another way, e.g. in a config file or by providing arguments to the Jenkins run command?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Jenkins Scm Sync Configuration Plugin Seems To Have No ...
Issue I cannot get Jenkins pipelines to post test results to GitLab. ... integration: From Jenkins to GitLab using Docker. usually means that...
Read more >jenkins groovy file extension - JodiStory
If you do not set the CASC_JENKINS_CONFIG environment variable or the casc.jenkins.config Java property, the plugin will default to looking ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hopefully just a typo? 🤔 Should read
CASC_JENKINS_CONFIG
It is that repo for packaging, no one is working on it (outside of changes required for the release automation project)
But anyone who is on the core team can merge PRs