Jenkins upgrade is broken
I noticed that we did not have the correct PGP key for newer Jenkins releases, so I updated that, and then Debian did an upgrade:
root@test:~# apt-cache policy jenkins
jenkins:
Installed: 2.375.3
Candidate: 2.375.3
Version table:
*** 2.375.3 500
500 http://pkg.jenkins.io/debian-stable binary/ Packages
100 /var/lib/dpkg/status
The upgrade:
Unpacking jenkins (2.426.1) over (2.375.3) ...
Setting up jenkins (2.426.1) ...
That worked fine (well, Jenkins started, idk for all plugins).
and then since the VM was running Debian 10/Buster, I upgraded it to Bullseye. Looking at the logs, I don't think it upgraded Jenkins again, but presumably upgraded dependencies (jdk?). After rebooting, Jenkins refused to start.
Example backtrace in logs:
Dec 08 18:47:39 test jenkins[1695]: 2023-12-08 18:47:39.660+0000 [id=29] WARNING hudson.ExtensionFinder$Sezpoz#scout: Failed to scout io.jenkins.plugins.analysis.warnings.groovy.ParserConfiguration
Dec 08 18:47:39 test jenkins[1695]: java.lang.ClassNotFoundException: edu.hm.hafner.util.NoSuchElementException
Dec 08 18:47:39 test jenkins[1695]: at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
Dec 08 18:47:39 test jenkins[1695]: at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:35)
Dec 08 18:47:39 test jenkins[1695]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:594)
Dec 08 18:47:39 test jenkins[1695]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
Dec 08 18:47:39 test jenkins[1695]: Caused: java.lang.NoClassDefFoundError: edu/hm/hafner/util/NoSuchElementException