question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No way to access CASC_JENKINS_CONFIG or other configuration variables when running Jenkins as a Linux service on a VM

See original GitHub issue

Jenkins 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jetersencommented, Aug 3, 2020

CASC doesn’t see the CASH_JENKINS_CONFIG.

Hopefully just a typo? 🤔 Should read CASC_JENKINS_CONFIG

1reaction
timjacommented, Jun 18, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found