jenkinsci / jenkinsci/junit-plugin

[JENKINS-44700] Publishing junit report fails with 'Could not initialize class jenkins.model.Jenkins'

Open
#1,077 5 comments 0 reactions 0 assignees View on GitHub
component:junit-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
87
Forks
351
Avg merge
1d 19h
Merged PRs (30d)
2

Description

Junit failing randomly on some build slave nodes with:

00:02:29.418 Recording test results*00:02:29.421* ERROR: Step ‘Publish JUnit test result report’ aborted due to exception: 00:02:29.421 java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins

---
Originally reported by piratejohnny, imported from: Publishing junit report fails with 'Could not initialize class jenkins.model.Jenkins'


  • status: Open
  • priority: Minor
  • component(s): junit-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 6
  • imported: 2025-11-26

Raw content of original issue

Junit failing randomly on some build slave nodes with:
00:02:29.418 Recording test results*00:02:29.421* ERROR: Step ‘Publish JUnit test result report’ aborted due to exception: 00:02:29.421 java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins

  • environment: jenkins 2.46.3

Contributor guide

Open the contributing guide

Research direction

No repository file, test, or entry point is named. Start by reproducing the failure in the JUnit report publishing step on the reported Jenkins 2.46.3 build-slave environment, then trace the NoClassDefFoundError. Done means the cause is identified and publishing succeeds reliably on affected nodes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.