Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52512

Builds on slave node fails when there is no report file even if set to do not fail


    • Similar Issues:


      I have a pipeline that executes JUnit. I have the pipeline configured to not fail when there are no unit tests:

       	$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.


          Issue Links


            mgortzak Mark Gortzak created issue -
            nfalco Nikolas Falco made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            nfalco Nikolas Falco made changes -
            Summary Builds fails when there is no unit test, even when thats okay Builds on slave node fails when there is no report file even if set to do not fail
            nfalco Nikolas Falco made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            greybird Arnaud TAMAILLON made changes -
            Link This issue is related to JENKINS-54257 [ JENKINS-54257 ]


              • Assignee:
                nfalco Nikolas Falco
                mgortzak Mark Gortzak
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: