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

GoogleTest parse error when time attribute is missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xunit-plugin
    • None
    • Jenkins: 2.107.3
      xUnit: 2.0.1
      OS: Debian stretch

      This is a regression from 2.0.0, downgrading makes it work again.

      I've attached a censored version of the xml file, write me if you need the full one.

      INFO: Processing GoogleTest-1.6 INFO: [GoogleTest-1.6] - 1 test report file(s) were found with the pattern 'test_results/*/*.xml' relative to '/xxx' for the testing framework 'GoogleTest-1.6'. ERROR: Conversion error: Cannot convert string "" to a double ERROR: Step 'Publish xUnit test result report' aborted due to exception: org.jenkinsci.plugins.xunit.exception.XUnitException: Conversion error: Cannot convert string "" to a double
       at org.jenkinsci.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:89)
       at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:136) Caused: java.io.IOException: There are some problems during the conversion into JUnit reports:
       at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:170)
       at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:41)
       at hudson.FilePath.act(FilePath.java:1020)
       at hudson.FilePath.act(FilePath.java:998)
       at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:207)
       at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:150)
       at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:124)
       at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
       at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
       at hudson.model.Build$BuildExecution.post2(Build.java:186)
       at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
       at hudson.model.Run.execute(Run.java:1752)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      

            nfalco Nikolas Falco
            jspricke Jochen Sprickerhof
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: