Closed tomlankhorst closed 4 years ago
and your jenkins.yaml
file?
Did you install the plugin from GUI or did you preload the plugin?
Is the snake yaml api plugin installed?
Same problem here. Since the update of the plugin just now our jenkins instance doesn't boot anymore, without any changes to our jenkins.yaml
or any other changes, except for the rebuild of our docker image that is based on jenkins:lts
.
Is the snake yaml api plugin installed?
Let me check that. I was expecting that all dependencies were automatically pulled into the docker image..?
Is the snake yaml api plugin installed?
Yes, snakeyaml-api
is installed. The jpi-file and the folder snakeyaml-api
is present inside the plugin-folder.
I can reproduce this, downloaded latest version of jenkins, installed suggested plugins, installed jcasc,
added jenkins.yaml:
jenkins:
systemMessage: testing
What if we revert #1332 ?
I've raised a PR to blacklist this version
but yeah could just revert
Not saying #1332 is the cause but it's a likely suspect.
i would put money on it 😉,
Looking at the stacktrace I've seen this before, need to pass the right class loader to snake yaml
Looking at the stacktrace I've seen this before, need to pass the right class loader to snake yaml
Can confirm. We had similar issues inside our codebase when using SnakeYAML without setting an explicit ClassLoader.
Untested fix here: https://github.com/jenkinsci/configuration-as-code-plugin/pull/1340
Will try test later tonight / tomorrow unless anyone else can confirm it works for them
Thank you for your quick response. @timja 's minimal jenkins.yaml triggers this issue indeed.
Since the latest release I get this exception.
This is since 1.37, does not occur to my knowledge in 1.36. https://github.com/jenkinsci/configuration-as-code-plugin/compare/configuration-as-code-1.36...configuration-as-code-1.37
YAML lint of configuration file is fine.
Your checklist for this issue
🚨 Please review the guidelines for contributing to this repository.
[x] Jenkins version 2.222.1
[x] Plugin version 1.37
[x] OS ubuntu:bionic container in ubuntu bionic
Description
Upon fresh-install, I get this exception.
My plugins.txt file: