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

Zephyr for JIRA hangs while recording results, and throws NPE while stopping the hanged job

XMLWordPrintable

      Hi,

      I am using the Zephyr for JIRA plugin to upload test results to JIRA.

      But the upload process hangs after the following log msg.

      Recording test results
      Build step 'Publish JUnit test result report' changed build result to UNSTABLE
      [ZapiTestResultReporter] [INFO] Examining test results...
      Build result is UNSTABLE

      If we stop the job(after hanging for 12-13hrs), we get NPE.
      Exception Stacktrace:

      Total Test Cases : 62ERROR: Build step failed with exception java.lang.NullPointerException at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.assignTests(TestCaseUtil.java:218) at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.processTestCaseDetails(TestCaseUtil.java:413) at com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:98) 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)

      Build step 'Publish test result to Zephyr for JIRA' marked build as failure Finished: FAILURE

      Plugin versions:
      Zephyr for JIRA: 1.3
      Zephyr Version on JIra server: 3.1.3.31302433
      JIra version: 7.0
      Jenkins Server version: 1.656
      Can anyone pls help me to find why the job hangs while uploading test results and why the NPE .

      TIA,
      Surajit

            zeedeveloper Zephyr Developer
            surajit82 Surajit Dasgupta
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: