-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Ubuntu 14.04.05 x64
Jenkins 2.32.3
zephyr-for-jira-test-management 1.4
I have a Robot Framework test result file "output.xml",
and I convert this test result file into JUnit format by command below in Build step:
rebot -x junit.xml -l NONE -r NONE output.xml
Under Post-Build, I have 2 post-build actions (refer to file Selection_003.png):
1. Publish Junit test result report
2. Publish test result to Zephyr for JIRA
And I'll get:
+ rebot -x junit1.xml -l NONE -r NONE output1.xml XUnit: /var/lib/Jenkins_Backup/jenkins/jobs/Publish_Test_Result_JIRA/workspace/junit1.xml Recording test results [ZapiTestResultReporter] [INFO] Examining test results... Build result is SUCCESS Total Test Cases : 8ERROR: 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:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1753) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Build step 'Publish test result to Zephyr for JIRA' marked build as failure
+ rebot -x junit2.xml -l NONE -r NONE output2.xml XUnit: /var/lib/Jenkins_Backup/jenkins/jobs/Publish_Test_Result_JIRA/workspace/junit2.xml Build step 'Execute shell' marked build as failure Recording test results [ZapiTestResultReporter] [INFO] Examining test results... Build result is FAILURE Total Test Cases : 8ERROR: Build step failed with exception java.lang.NullPointerException at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.executeTests(TestCaseUtil.java:404) 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:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1753) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Build step 'Publish test result to Zephyr for JIRA' marked build as failure
[JENKINS-43146] java.lang.NullPointerException when publish JUnit.xml result to Zephyr for Jira
Attachment | New: Selection_003.png [ 36786 ] |
Attachment | New: output2.xml [ 36787 ] | |
Attachment | New: output1.xml [ 36788 ] |
Attachment | New: junit2.xml [ 36789 ] | |
Attachment | New: junit1.xml [ 36790 ] |
Description |
Original:
I have a Robot Framework test result file "output.xml", and I convert this test result file into JUnit format by command below in Build step: {code:java} rebot -x junit.xml -l NONE -r NONE output.xml {code} Under Post-Build, I have 2 post-build actions (refer to file Selection_003.png): 1. Publish Junit test result report 2. Publish test result to Zephyr for JIRA And I'll get: {code:java} + rebot -x junit.xml -l NONE -r NONE output.xml XUnit: /var/lib/Jenkins_Backup/jenkins/jobs/Publish_Test_Result_JIRA/workspace/junit.xml Recording test results [ZapiTestResultReporter] [INFO] Examining test results... Build result is SUCCESS Total Test Cases : 8ERROR: 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:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1753) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Build step 'Publish test result to Zephyr for JIRA' marked build as failure {code} {code:java} + rebot -x junit.xml -l NONE -r NONE output.xml XUnit: /var/lib/Jenkins_Backup/jenkins/jobs/Publish_Test_Result_JIRA/workspace/junit.xml Build step 'Execute shell' marked build as failure Recording test results [ZapiTestResultReporter] [INFO] Examining test results... Build result is FAILURE Total Test Cases : 8ERROR: Build step failed with exception java.lang.NullPointerException at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.executeTests(TestCaseUtil.java:404) 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:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1753) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Build step 'Publish test result to Zephyr for JIRA' marked build as failure {code} |
New:
I have a Robot Framework test result file "output.xml", and I convert this test result file into JUnit format by command below in Build step: {code:java} rebot -x junit.xml -l NONE -r NONE output.xml {code} Under Post-Build, I have 2 post-build actions (refer to file Selection_003.png): 1. Publish Junit test result report 2. Publish test result to Zephyr for JIRA And I'll get: {code:java} + rebot -x junit1.xml -l NONE -r NONE output1.xml XUnit: /var/lib/Jenkins_Backup/jenkins/jobs/Publish_Test_Result_JIRA/workspace/junit1.xml Recording test results [ZapiTestResultReporter] [INFO] Examining test results... Build result is SUCCESS Total Test Cases : 8ERROR: 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:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1753) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Build step 'Publish test result to Zephyr for JIRA' marked build as failure {code} {code:java} + rebot -x junit2.xml -l NONE -r NONE output2.xml XUnit: /var/lib/Jenkins_Backup/jenkins/jobs/Publish_Test_Result_JIRA/workspace/junit2.xml Build step 'Execute shell' marked build as failure Recording test results [ZapiTestResultReporter] [INFO] Examining test results... Build result is FAILURE Total Test Cases : 8ERROR: Build step failed with exception java.lang.NullPointerException at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.executeTests(TestCaseUtil.java:404) 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:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1753) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Build step 'Publish test result to Zephyr for JIRA' marked build as failure {code} |
I saw that, this issue is fixed in JENKINS-30091 in windows 7 for Zephyr for Jira plugin version 1.3. But it is being hanged after ...
Jenkins Version: 2.52