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

java.lang.NullPointerException when publishing to Jira

    Details

    • Similar Issues:

      Description

      The test results are not being published to JIRA. I can see that a new cycle was created and the test cases are there but the test status is showing as unexecuted. I can see the Junit XML page was created with the proper results.

       

       

      Total time: 15 hrs 30 mins 36.281 secs
      Recording test results
      [ZapiTestResultReporter] [INFO] Examining test results...
      Build result is SUCCESS
      Total Test Cases : 81ERROR: Build step failed with exception
      java.lang.NullPointerException
      at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.executeTests(TestCaseUtil.java:424)
      at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.processTestCaseDetails(TestCaseUtil.java:564)
      at com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:99)
      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:1749)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:421)
      Build step 'Publish test result to Zephyr for JIRA' marked build as failure
      Finished: FAILURE

        Attachments

          Activity

          Hide
          mithun41 Mithun Nadig added a comment -

          Can we prioritize this issue. This is blocking us from using the plugin.

          Show
          mithun41 Mithun Nadig added a comment - Can we prioritize this issue. This is blocking us from using the plugin.
          Hide
          raveenachauhan Raveena Chauhan added a comment -

          Even i am getting this issue. I have parameterized the test cases in my Jenkins setup. If i try to execute a single test case, it publishes the result, but at the same time if i try to execute and publish results for multiple/all of the test cases, it fails with the same error as above. Requesting you to kindly prioritize this issue.

          Show
          raveenachauhan Raveena Chauhan added a comment - Even i am getting this issue. I have parameterized the test cases in my Jenkins setup. If i try to execute a single test case, it publishes the result, but at the same time if i try to execute and publish results for multiple/all of the test cases, it fails with the same error as above. Requesting you to kindly prioritize this issue.

            People

            • Assignee:
              zeedeveloper Zephyr Developer
              Reporter:
              samanthafw Samantha Fairwarning
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: