Mvn test failed for plugin after upgrade to the latest jenkins version and error is `java.lang.NoSuchFieldError: useAntClassLoader`

Why did you disable the enforcer? Can you run with mvn -V to see which JDK versions are actually used? I am building typically on Java 21.

What seems broken as well:

Running tests for io.alauda.jenkins.plugins:alauda-devops-sync:4.82
May 13, 2024 2:53:18 PM org.eclipse.jetty.util.log.JettyAwareLogger log
INFO: Logging initialized @23554ms
Running tests for io.alauda.jenkins.plugins:alauda-devops-sync:4.79

Why are some test run with 4.82, some with 4.79?

Why do these tests not run with a snapshot version?

1 Like