Zephyr for JIRA plugin 1.5 in Jenkins is giving error as "JSONObject["jobProgressToken"] not found"
Hi
I have integrated "Zephyr for JIRA plugin 1.5 " with Jenkins to push selenium automation results to JIRA.
But after building Jenkins job I am getting below error.
20:18:50 [ZapiTestResultReporter] [INFO] Examining test results...
20:18:50 Build result is SUCCESS
20:18:51 Total Test Cases : 2ERROR: Build step failed with exception
20:19:08 org.json.JSONException: JSONObject["jobProgressToken"] not found.
20:19:08 at org.json.JSONObject.get(JSONObject.java:473)
20:19:08 at org.json.JSONObject.getString(JSONObject.java:654)
20:19:08 at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.assignTests(TestCaseUtil.java:315)
20:19:08 at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.processTestCaseDetails(TestCaseUtil.java:641)
20:19:08 at com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:101)
20:19:08 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
20:19:08 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
20:19:08 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
20:19:08 at hudson.model.Build$BuildExecution.post2(Build.java:186)
20:19:08 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
20:19:08 at hudson.model.Run.execute(Run.java:1905)
20:19:08 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
20:19:08 at hudson.model.ResourceController.execute(ResourceController.java:97)
20:19:08 at hudson.model.Executor.run(Executor.java:428)
20:19:08 Build step 'Publish test result to Zephyr for JIRA' marked build as failure
20:19:08 [WS-CLEANUP] Deleting project workspace...
Below are the tools versions:-
JIRA - Jira v8.12.3
Jenkins- Jenkins 2.235.5
Zephyr for JIRA plugin in Jenkins -1.5
Plugin instructions followed from below link:-
https://plugins.jenkins.io/zephyr-for-jira-test-management/