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

Publish hangs for xUnit Plugin for (NUnit test report) in multiple-pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • xunit-plugin
    • None
    • Jenkins version: 2.7.2
      XUnit Plugin version: 1.102
      JUnit Plugin version: 1.18

      Environment: Windows Server 2008 R2 Standard

      Jenkins hangs when trying to publish an NUnit testresult in a multiple pipeline project.
      To fix the problem I have to kill the java process and restart jenkins (it just consumes more and more memory.

      My pipeline (JenkinsFile) is configured as:

      stage 'Build'
        // Build is done here (through msbuild)
        // Tests are run here which generates "UnitTests_TestResults_NUnit.xml"
      
      stage 'Publish test results in NUnit format'
        step([$class: 'XUnitPublisher', testTimeMargin: '3000', thresholdMode: 1,
          tools: [[$class: 'NUnitJunitHudsonTestType', deleteOutputFiles: true, 
          failIfNotNew: true, pattern: '**/*TestResults_NUnit.xml',
          skipNoTestFiles: false, stopProcessingIfError: true]]])
      

      The attached XML file was generated by xUnit.net with the /nunit option set.

      I also tried to publish a xunit.net testreport - it fails in the same way:

      stage 'Build'
        // Build is done here (through msbuild)
        // Tests are run here which generates "UnitTests_TestResults_NUnit.xml"
      
      stage 'Publish test results in XUnit.Net format'
        step([$class: 'XUnitPublisher', testTimeMargin: '3000', thresholdMode: 1, 
          tools: [[$class: 'XUnitDotNetTestType', deleteOutputFiles: false, 
          failIfNotNew: true, pattern: '**/*_TestResults_XUnit.xml', 
          skipNoTestFiles: false, stopProcessingIfError: true]]])
      

            nfalco Nikolas Falco
            joth Jonas Thyregod
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: