Struggling to build plugin after update

29 views
Skip to first unread message

Jean-Marc Meessen

unread,
Nov 14, 2021, 5:25:47 AM11/14/21
to jenkin...@googlegroups.com
Hello,

As a new plugin maintainer (https://github.com/jenkinsci/webhook-step-plugin), I modernized it, following the Hacktoberfest checklist and dependabot recommendations. All the PRs and master built successfully on the Jenkins CI.

I now wanted to start "refreshing" some parts of the code and thus started by rebuilding the master branch on my dev environment. But, alas, all the tests now fail with class related errors (NoClassDefFoundError: Could not initialize class). None of the tests work any more. 

I tried both on Gitpod and my local environment. Maven is 3.8.3 and Java is either 11 or 17.

Any suggestions?
Is there a new build parameter required ?
Where should I start digging (besides pinpointing the exact error messages)?
Could a good soul try to compile the master branch on his dev environment to see if the problem is with my (default) settings ?

/- Jmm

Mark Waite

unread,
Nov 14, 2021, 6:03:43 AM11/14/21
to Jenkins Developers
Thanks for asking.  That's an interesting failure message.

I would not expect very many of the Jenkins components will compile with Java 17.  We've only just recently added a Java 17 runtime preview that is using standard Jenkins code that is compiled for Java 8.

When I clone and compile https://github.com/jenkinsci/webhook-step-plugin with Java 11 on Linux, it passes all tests.

When I clone and compile https://github.com/jenkinsci/webhook-step-plugin with Java 17 on Linux, it fails tests with java.lang.NoClassDefFoundError com.google.inject.internal.cglib.core.$ReflectUtils

That seems to be a slightly different failure than the failure you're seeing, but that may not be too surprising if we are running different versions of Java 17 or different environments.

Mark Waite

Jean-Marc Meessen

unread,
Nov 14, 2021, 6:13:45 AM11/14/21
to jenkin...@googlegroups.com
Thank you for the hint, Mark. And thank you for taking the time to compile.

I have now a bone to chew on.

/- Jmm 

--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ad7d7ec4-d665-42ea-b6c2-c3fe0dd6b32en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages