On Tuesday, April 5, 2022 at 4:01:32 PM UTC-6 Basil wrote:
> Release 4.40 of the plugin parent POM > <https://github.com/jenkinsci/plugin-pom/releases/tag/plugin-4.40> > features build toolchain support for Java 17 when running on Jenkins 2.341 > or later. > > Please begin testing your plugins on Java 17 by taking the following > actions: > > 1. Upgrade to release 4.40 or later of the plugin parent POM. > 2. Delete <java.level>8</java.level> from your plugin POM. > 3. Update your Jenkinsfile to include a test run on Jenkins 2.341 or > later and Java 17. > > See jenkinsci/email-ext-plugin#357 > <https://github.com/jenkinsci/email-ext-plugin/pull/357> and > jenkinsci/timestamper-plugin#167 > <https://github.com/jenkinsci/timestamper-plugin/pull/167> for examples. > > Thanks for doing that. I've successfully updated 6 plugins to test with Java 17. No issues reported in any of the 6 plugins. I need further guidance on one plugin. It fails with a runtime exception in the test. The exception should be visible in https://ci.jenkins.io/job/Plugins/job/git-plugin/view/change-requests/job/PR-1249/ It looks like this on my development environment: [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.462 s <<< FAILURE! - in hudson.plugins.git.CliGitSCMTriggerLocalPollTest [ERROR] hudson.plugins.git.CliGitSCMTriggerLocalPollTest.testNamespaces_with_refsHeadsMaster Time elapsed: 3.367 s <<< ERROR! java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.AbstractProject#scm for class hudson.model.FreeStyleProject at hudson.XmlFile.write(XmlFile.java:220) at hudson.model.AbstractItem.save(AbstractItem.java:617) at hudson.model.Job.save(Job.java:193) at hudson.model.AbstractProject.save(AbstractProject.java:289) at hudson.model.AbstractProject.setScm(AbstractProject.java:1506) at hudson.plugins.git.AbstractGitProject.setupProject(AbstractGitProject.java:193) at hudson.plugins.git.SCMTriggerTest.check(SCMTriggerTest.java:244) at hudson.plugins.git.SCMTriggerTest.testNamespaces_with_refsHeadsMaster(SCMTriggerTest.java:63) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:54) at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:606) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.RuntimeException: Failed to serialize hudson.model.AbstractProject#scm for class hudson.model.FreeStyleProject at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:274) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:241) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:226) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:163) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:83) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) at com.thoughtworks.xstream.XStream.marshal(XStream.java:1266) at com.thoughtworks.xstream.XStream.marshal(XStream.java:1255) at com.thoughtworks.xstream.XStream.toXML(XStream.java:1228) at hudson.XmlFile.write(XmlFile.java:213) ... 22 more Caused by: java.lang.RuntimeException: Failed to serialize hudson.plugins.git.GitSCM#userRemoteConfigs for class hudson.plugins.git.GitSCM at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:274) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:241) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:226) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:163) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) Mark Waite > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ad2cd4de-a161-4e23-a11b-1ba6feeff894n%40googlegroups.com.
