-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Jenkins X
-
Tags:
-
Sprint:nxplatform #70
The napps Jenkins has auto upgraded to Jenkins 2.361.1 and is broken, we can see in the agent logs:
Sep 19, 2022 2:36:37 PM hudson.remoting.jnlp.Main$CuiListener status │ │ INFO: Remote identity confirmed: ed:a8:83:09:2a:8d:1d:ec:e4:9c:66:dc:68:6e:6f:1c │ │ Sep 19, 2022 2:36:37 PM hudson.remoting.jnlp.Main$CuiListener status │ │ INFO: Connected │ │ Sep 19, 2022 2:36:37 PM hudson.remoting.UserRequest perform │ │ WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@2072aacd │ │ java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion │ │ at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:387) │ │ at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:309) │ │ at java.lang.ClassLoader.loadClass(ClassLoader.java:419) │ │ at java.lang.ClassLoader.loadClass(ClassLoader.java:352) │ │ at java.lang.Class.forName0(Native Method) │ │ at java.lang.Class.forName(Class.java:348) │ │ at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132) │ │ at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1923) │ │ at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1806) │ │ at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2097) │ │ at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1625) │ │ at java.io.ObjectInputStream.readObject(ObjectInputStream.java:465) │ │ at java.io.ObjectInputStream.readObject(ObjectInputStream.java:423) │ │ at hudson.remoting.UserRequest.deserialize(UserRequest.java:290) │ │ at hudson.remoting.UserRequest.perform(UserRequest.java:189) │ │ at hudson.remoting.UserRequest.perform(UserRequest.java:54) │ │ at hudson.remoting.Request$2.run(Request.java:369) │ │ at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) │ │ at java.util.concurrent.FutureTask.run(FutureTask.java:266) │ │ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) │ │ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) │ │ at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117) │ │ at java.lang.Thread.run(Thread.java:748) │ │ Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of t │ │ at java.lang.ClassLoader.defineClass1(Native Method) │ │ at java.lang.ClassLoader.defineClass(ClassLoader.java:757) │ │ at java.lang.ClassLoader.defineClass(ClassLoader.java:636) │ │ at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:385) │ │ ... 22 more │ │ │ │ Sep 19, 2022 2:36:37 PM hudson.remoting.jnlp.Main$CuiListener status │ │ INFO: Terminated
Following https://www.jenkins.io/blog/2022/06/28/require-java-11/, we need to upgrade the jenkins agent image version to be able to work with the updated jenkins in the napps CI