You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'm trying to set-up the Xray plugin with Jenkins but I'm getting a 302 error when importing the results:
AbortException: Unable to confirm Result of the upload..... Upload Failed! Status:302 Response:<html><head><title>302 Found</title></head><body><center><h1>302 Found</h1></center><hr><center>nginx/1.19.4</center></body></html> 2021-03-15 10:07:21.597 | at com.xpandit.plugins.xrayjenkins.task.XrayImportBuilder.tryUploadResults(XrayImportBuilder.java:822) 2021-03-15 10:07:21.598 | at com.xpandit.plugins.xrayjenkins.task.XrayImportBuilder.uploadResults(XrayImportBuilder.java:693) 2021-03-15 10:07:21.598 | at com.xpandit.plugins.xrayjenkins.task.XrayImportBuilder.importResultsSequential(XrayImportBuilder.java:594) 2021-03-15 10:07:21.598 | at com.xpandit.plugins.xrayjenkins.task.XrayImportBuilder.perform(XrayImportBuilder.java:565) 2021-03-15 10:07:21.598 | at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:112) 2021-03-15 10:07:21.598 | at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:116) 2021-03-15 10:07:21.598 | at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71) 2021-03-15 10:07:21.598 | at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) 2021-03-15 10:07:21.598 | at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 2021-03-15 10:07:21.598 | at java.util.concurrent.FutureTask.run(Unknown Source) 2021-03-15 10:07:21.598 | at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2021-03-15 10:07:21.598 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2021-03-15 10:07:21.598 | at java.lang.Thread.run(Unknown Source)
My post step is:
post {
always {
step([$class: 'XrayImportBuilder',
endpointName: '/junit/multipart',
importFilePath: 'project/test/**/reports/*.xml',
importToSameExecution: 'true',
projectKey: 'PROJ',
serverInstance: 'SERVER-*******'])
}
}
Jenkins 2.249.2 and Xray plugin 2.4.0