I am trying to import test execution results to jira+xray and using the Jenkins Xray plugin. The JSON file works well when I manually post a request on the path " /rest/raven/2.0/import/execution", but fails while using the Jenkins Xray plugin. I understand from the xray documentation here that jenkins plugin uses the endpoint "/rest/raven/1.0/import/execution". Is there a way to change version 1.0 to 2.0 in jenkins xray plugin?
Jenkins xray plugin version=> xray-connector:2.5.1
CustomFields part of the json that is causing the issue
"customFields": [{
"id": 10,
"value": "test"
},
{
"id": 4,
"value": "test1"
},
{
"id": 6,
"value": "test2"
},
{
"id": 8,
"value": "test3"
}]
This is the error message I get,
ERROR: Unable to confirm Result of the upload..... Upload Failed! Status:400 Response:You can't import Test Runs Custom Fields using the v1 REST API