-
Bug
-
Resolution: Unresolved
-
Critical
-
None
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
We're running into the same issue. Job hangs while compiling the test reports. We finally stopped the build after about 3.5 hours of waiting and got the NPE as well.
I see the new test cases have been created, but no new cycle or execution statuses were added to them.
[ZapiTestResultReporter] [INFO] Examining test results...
11:55:33 Build result is UNSTABLE
11:55:33 Total Test Cases : 498ERROR: Build step failed with exception
15:30:00 java.lang.NullPointerException
15:30:00 at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.assignTests(TestCaseUtil.java:218)
15:30:00 at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.processTestCaseDetails(TestCaseUtil.java:413)
15:30:00 at com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:98)
15:30:00 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
15:30:00 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
15:30:00 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
15:30:00 at hudson.model.Build$BuildExecution.post2(Build.java:185)
15:30:00 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
15:30:00 at hudson.model.Run.execute(Run.java:1766)
15:30:00 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
15:30:00 at hudson.model.ResourceController.execute(ResourceController.java:98)
15:30:00 at hudson.model.Executor.run(Executor.java:410)
15:30:00 Build step 'Publish test result to Zephyr for JIRA' marked build as failure
Jenkins v1.637
Zephyr v1.3
Jira v6.3.15