A wrong configuration of CasC yaml kills Jenkins startup
See original GitHub issueYour 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:
- Created 4 years ago
- Reactions:3
- Comments:10 (9 by maintainers)
Top 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 >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
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.I am with the AdministrativeMonitor-team.