Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Importing Junit xml result file in Jira - authentication error

hamritha29
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 25, 2023

Hi, I was trying to publish Xnuit execution result in xml format to Jira using Xray API which worked perfectly.But, when I tried same with Junit execution file it shows authentication issue (401 unauthorized error)

"token=curl -H 'Content-Type: application/json' -X POST --data '{ "client_id": "$(client_id)", "client_secret": "$(client_secret)" }' https://xray.cloud.getxray.app/api/v2/authenticate -v"    where I get token and use it to import result.
curl -H 'Content-Type: text/xml' -X POST -H 'Authorization: Bearer $(XRAY_TOKEN)' --data @/target/surefire-reports/TEST-**.xml https://xray.cloud.getxray.app/api/v2/import/execution/junit?projectKey=$ProjKey
Kindly help with this

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events