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.

A wrong configuration of CasC yaml kills Jenkins startup

See original GitHub issue

Your checklist for this issue

🚨 Please review the guidelines for contributing to this repository.

  • Jenkins version 2.60.1, 2.164.1,2.165

  • Plugin version 2.20-snapshot, 2.19

  • OS Linux

Description

While testing the CasC plugin I’ve found that if the yaml is wrong, Jenkins stop restarting, leaving you with an unoperational instance.

Steps to reproduce:

Cre

  • ate a yaml with ssh credentials
  • Import this yaml
  • Remove credentials and ssh-credentials
  • Restart Jenkins

Expected: Some settings are established, others not.

Current behavior: Jenkins doesn’t start.

Also filed in Jira: https://issues.jenkins-ci.org/browse/JENKINS-57862

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

8reactions
uhafnercommented, Jun 15, 2019

I think it makes sense to look at Jenkins core on how to handle errors in configuration files, maybe you can adapt that part of the code. If a config.xml is broken then we get nice error messages in the UI rather than a bricked instance.

1reaction
Smasherrcommented, Jun 12, 2019

I am with the AdministrativeMonitor-team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A wrong configuration of CasC yaml kill Jenkins startup
While testing the CasC plugin I've found that if the yaml is wrong, Jenkins stop restarting, leaving you with an unoperational instance.
Read more >
57862\) A wrong configuration of CasC yaml kill Jenkins startup
That is, I have a job that does a SCM checkout, and then runs something like this as a system-groovy script (from the...
Read more >
jenkinsci/configuration-as-code-plugin - Gitter
I've looked through the code, and can't quite see what goes wrong. My theory is that CASC does not communicate with my Vault...
Read more >
Why Not Jenkins? Pros and Cons of an old system! (Prove me ...
Engineers use the wrong plugins within Jenkins because there's no ... whole Jenkins config in a yaml file which gets loaded on startup...
Read more >
Failed ConfigurationAsCode.init - Stack Overflow
security: downloadSettings: useBrowser: false. Jenkins with the configuration as code plugin, will need to remove the downloadSettings entry ...
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