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

xUnit plugin fails to convert CTest xml

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      xUnit 1.101, Jenkins 2.0, Ubuntu 15.10
    • Similar Issues:

      Description

      xUnit plugin fails to convert CTest xml file (attached) with the stack trace below. Note also that it says "found two Test.xml" of which I can only find one.

      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing CTest-Version N/A (default)
      [xUnit] [INFO] - [CTest-Version N/A (default)] - 2 test report file(s) were found with the pattern 'build/**/Testing/**/Test.xml' relative to '/var/lib/jenkins/workspace/Cgreen-thoni56' for the testing framework 'CTest-Version N/A (default)'.
      [xUnit] [ERROR] - Conversion error Error to convert - A file not found
      ERROR: Step ‘Publish xUnit test result report’ aborted due to exception: 
      hudson.util.IOException2: There are some problems during the conversion into JUnit reports: 
      	at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:183)
      	at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:44)
      	at hudson.FilePath.act(FilePath.java:990)
      	at hudson.FilePath.act(FilePath.java:968)
      	at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:145)
      	at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:88)
      	at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:142)
      	at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:134)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      	at hudson.model.Build$BuildExecution.post2(Build.java:185)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      	at hudson.model.Run.execute(Run.java:1763)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Caused by: org.jenkinsci.plugins.xunit.exception.XUnitException: Conversion error Error to convert - A file not found
      	at org.jenkinsci.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:86)
      	at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:146)
      	... 16 more
      Caused by: org.jenkinsci.lib.dtkit.util.converter.ConversionException: Error to convert - A file not found
      	at org.jenkinsci.lib.dtkit.util.converter.ConversionService.convert(ConversionService.java:358)
      	at org.jenkinsci.lib.dtkit.util.converter.ConversionService.convert(ConversionService.java:172)
      	at org.jenkinsci.lib.dtkit.model.InputMetricXSL.convert(InputMetricXSL.java:181)
      	at org.jenkinsci.lib.dtkit.model.InputMetricXSL.convert(InputMetricXSL.java:189)
      	at org.jenkinsci.plugins.xunit.service.XUnitConversionService.convertInputMetricXSL(XUnitConversionService.java:117)
      	at org.jenkinsci.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:79)
      	... 17 more
      Caused by: org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 1; XML-dokumentstrukturer måste börja och sluta inom samma enhet.
      	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
      	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:338)
      	at org.jenkinsci.lib.dtkit.util.converter.ConversionService.convert(ConversionService.java:316)
      	... 22 more
      Finished: FAILURE
      

        Attachments

          Activity

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              thoni56 thoni56
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: