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

x-unit option not to fail if there isn't a test results file

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      any
    • Similar Issues:

      Description

      We are running the Job build in many platforms, and now we have one cross-platform, so now the cppunit will fail for just this case, not generating the test results file.
      It would be important to have a checkbox allowing not to fail if there aren't test result files for this cross-platform case.

        Attachments

          Activity

          Hide
          pablaasmo Per Arnold Blaasmo added a comment -

          I get this message after upgrading this plugin to version 1.55:

          ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception
          java.lang.NullPointerException
          at com.thalesgroup.dtkit.metrics.hudson.api.type.MetricsType.isSkipNoTestFiles(MetricsType.java:80)
          at org.jenkinsci.plugins.xunit.XUnitPublisher.getXUnitToolInfoObject(XUnitPublisher.java:191)
          at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:169)
          at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:116)
          at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
          at hudson.model.Run.execute(Run.java:1600)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:241)

          After going into the project config and save it it works.

          So maybe there are some need to save config on all projects that uses this plugin?

          Show
          pablaasmo Per Arnold Blaasmo added a comment - I get this message after upgrading this plugin to version 1.55: ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NullPointerException at com.thalesgroup.dtkit.metrics.hudson.api.type.MetricsType.isSkipNoTestFiles(MetricsType.java:80) at org.jenkinsci.plugins.xunit.XUnitPublisher.getXUnitToolInfoObject(XUnitPublisher.java:191) at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:169) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:116) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1600) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) After going into the project config and save it it works. So maybe there are some need to save config on all projects that uses this plugin?

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              pedroreis pedro reis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: