-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins ver. 2.121.1
xUnit plugin 2.0.3 or 2.0.4
I have a pipeline that executes JUnit. I have the pipeline configured to not fail when there are no unit tests:
step( [ $class : 'XUnitBuilder', thresholds: [[$class: 'FailedThreshold', unstableThreshold: '0']], tools : [[$class: 'JUnitType', pattern: '**/build/test-results/test/TEST-*.xml', skipNoTestFiles: true]] ] )
With xUnit 2.0.3 or 2.0.4 I get this error:
org.jenkinsci.plugins.xunit.service.NoTestFoundException: [JUnit] - No test report file(s) were found with the pattern '**/build/test-results/test/TEST-*.xml' relative to 'd:\agent\workspace\cd\nexus-api\nxs-ews-api\master' for the testing framework 'JUnit'. Did you enter a pattern relative to (and within) the workspace directory? Did you generate the result report(s) for 'JUnit'? at org.jenkinsci.plugins.xunit.service.XUnitReportProcessorService.findReports(XUnitReportProcessorService.java:81) at org.jenkinsci.plugins.xunit.service.XUnitTransformerCallable.invoke(XUnitTransformerCallable.java:84) at org.jenkinsci.plugins.xunit.service.XUnitTransformerCallable.invoke(XUnitTransformerCallable.java:39) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2918) at hudson.remoting.UserRequest.perform(UserRequest.java:181) at hudson.remoting.UserRequest.perform(UserRequest.java:52) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at hudson.remoting.Engine$1$1.run(Engine.java:98) at java.lang.Thread.run(Thread.java:745)
When I downgrade to 2.0.2 the error goes away.
I think it has something to do with JENKINS-27860.
- is related to
-
JENKINS-54257 Infinite loop when an exception occurs on slave
- Resolved