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

TestNG publisher plugin throws NullPointerException when trying to publish testng results and makes build to fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: testng-plugin
    • Environment:
      Linux 2.6.18-274.3.1.el5 #1 SMP Tue Sep 6 20:13:52 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
    • Similar Issues:

      Description

      Looking for TestNG results report in workspace using pattern: */.xml
      ERROR: Publisher hudson.plugins.testng.Publisher aborted due to exception
      java.lang.NullPointerException
      at hudson.plugins.testng.parser.ResultsParser.finishSuite(ResultsParser.java:267)
      at hudson.plugins.testng.parser.ResultsParser.parse(ResultsParser.java:166)
      at hudson.plugins.testng.TestNGBuildAction.loadResults(TestNGBuildAction.java:105)
      at hudson.plugins.testng.Publisher.perform(Publisher.java:103)
      at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647)
      at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616)
      at hudson.model.Run.run(Run.java:1429)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:230)

      I have other jobs that are configured in the same way (cloned the failing one) and these jobs are not failing (no exception is thrown).

        Attachments

          Activity

            People

            Assignee:
            nalin_makar nalin_makar
            Reporter:
            dumghen Ghenadie Dumitru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: