java.lang.NoClassDefFoundError: hudson/os/PosixAPI

183 views
Skip to first unread message

Marit M

unread,
Jul 18, 2022, 11:15:20 AM7/18/22
to Jenkins Developers
Hi,

I'm trying to release a new plugin, and I get the following error:


18:10:16 [INFO] ------------------------------------------------------- 18:10:16 [INFO] T E S T S 18:10:16 [INFO] ------------------------------------------------------- 18:10:17 [INFO] Running InjectedTest 18:10:17 [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.284 s <<< FAILURE! - in InjectedTest 18:10:17 [ERROR] initializationError(InjectedTest) Time elapsed: 0.022 s <<< ERROR! 18:10:17 java.lang.NoClassDefFoundError: hudson/os/PosixAPI 18:10:17    at org.jvnet.hudson.test.HudsonTestCase.<clinit>(HudsonTestCase.java:1780)

Please advise how to proceed.

Thanks,
Marit.

Basil Crow

unread,
Jul 18, 2022, 11:25:17 AM7/18/22
to jenkin...@googlegroups.com
As of jenkinsci/jenkins#6323 (released in 2.338), you need to be running jenkinsci/jenkins-test-harness#350 (released in 1657.vf8a824e79147), included in the plugin parent POM starting with 4.32.

Marit M

unread,
Jul 18, 2022, 3:24:04 PM7/18/22
to Jenkins Developers
Thanks, I updated the plugin parent POM to 4.32.

ב-יום שני, 18 ביולי 2022 בשעה 18:25:17 UTC+3, m...@basilcrow.com כתב/ה:
Reply all
Reply to author
Forward
0 new messages