Jenkins failed to create test report due to NoClassDefFoundError - ParseResultCallable

I set up a Jenkins task to run some integration tests. After testing is complete, Jenkins should look for a test report in the settings. However, it gives the following error:

Recording test results ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception java.lang.NoClassDefFoundError: hudson/tasks/junit/JUnitParser$ParseResultCallable at hudson.tasks.junit.JUnitParser.parseResult(JUnitParser.java:90) at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:120) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:137) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1779) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Finished: FAILURE 

Here is my Junit publication publish setting: enter image description here

I checked the path for these xml files in the workspace, they exist. I'm not sure what might be wrong. My version is JUnit Plugin 1.5.

+5
source share
2 answers

You have a version mismatch between the version of JUnit in your assembly and the version downloaded in Jenkins. https://issues.jenkins-ci.org/browse/JENKINS-24946 may give some insight, but overall you need to be very careful that the versions are compatible.

+2
source

I think there is some configuration problem, somewhere in the configuration it is not updated with the latest version.
At some point you will have to work with the latest version.
Instead of downgrading, just create a new branch of your project. I created a new branch of my project, and then the assembly went smoothly, although it still does not work with the old branch. So it is better to work with the latest version of JUNIt, creating a new branch, jenkin will select it automatically.

  1. Also turning off the current workspace can help enter image description here
0
source

All Articles