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

Jenkins NUnit Plugin 0.20 NullPointerException when parsing Unity3D test xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • nunit-plugin
    • Jenkins 2.46.2, Windows 10 version 1703, Chrome 58.0.3029.110

      I'm using the Unity Test Framework to generate NUnit test results to an xml file. When the NUnit plugin attempts to parse the file I get a NullReferenceException:

      17:00:57 ERROR: Build step failed with exception
      17:00:57 java.lang.NullPointerException
      17:00:57 at hudson.plugins.nunit.NUnitReportTransformer.splitJUnitFile(NUnitReportTransformer.java:108)
      17:00:57 at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:75)
      17:00:57 at hudson.plugins.nunit.NUnitArchiver.call(NUnitArchiver.java:62)
      17:00:57 at hudson.plugins.nunit.NUnitArchiver.call(NUnitArchiver.java:30)
      17:00:57 at hudson.FilePath.act(FilePath.java:1083)
      17:00:57 at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:264)
      17:00:57 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      17:00:57 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      17:00:57 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      17:00:57 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      17:00:57 at hudson.model.Build$BuildExecution.post2(Build.java:186)
      17:00:57 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      17:00:57 at hudson.model.Run.execute(Run.java:1753)
      17:00:57 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      17:00:57 at hudson.model.ResourceController.execute(ResourceController.java:98)
      17:00:57 at hudson.model.Executor.run(Executor.java:405)
      17:00:57 Build step 'Publish NUnit test result report' marked build as failure

       

      Please find the source file (unity3d_testresults.xml) and output file (temp-junit.xml) attached.

       

        1. temp-junit.xml
          0.4 kB
          Chris Wheeler
        2. unity3d_testresults.xml
          2 kB
          Chris Wheeler

            slide_o_mix Alex Earl
            c9iner Chris Wheeler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: