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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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!
Oct 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