jenkinsci / jenkinsci/configuration-as-code-plugin

A wrong configuration of CasC yaml kills Jenkins startup

Open
#912 10 comments 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.8k
Forks
756
Avg merge
9h 47m
Merged PRs (30d)
10

Description

### Your checklist for this issue

🚨 Please review the [guidelines for contributing](../blob/master/docs/CONTRIBUTING.md) to this repository.

- [x] Jenkins version
2.60.1, 2.164.1,2.165

- [x] Plugin version
2.20-snapshot, 2.19

- [x] 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.