Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't POST Xray results from Jenkins

Pavel Smajda August 19, 2019

Hi, I got a problem with exporting results from Jenkins XRAY plugin to JIRA. I always get a message you can see at very bottom of this message. 

Do I need to setup some API keys or something?

Do you have some solution for this?

 

Thanks a lot for help!

------

Xray for JIRA config:
config alias: jira-server

hosting: server/data center

server address: https://xray.cloud.xpand-it.com

username: xyz

password: xyz

------

Connection: Success!

 

Xray: Results import task

Jira instance: jira-server

Format: JUnit XML

Parameters

Execution report file: abc.xml

Project key: ABC

 

Starting import task...
##########################################################
####     Importing the execution results to Xray      ####
##########################################################
Starting to import results from test_results011ef2f33aff21a282aed2439b3edf56.xml
ERROR: Step ‘Xray: Results Import Task’ failed: Unable to confirm Result of the upload..... Upload Failed! Status:404 Response:<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Error</title></head><body><pre>Cannot POST /rest/raven/1.0/import/execution/junit</pre></body></html>
Finished: FAILURE

 

5 answers

1 accepted

0 votes
Answer accepted
Pavel Smajda August 20, 2019

Solved by switching hosting: server/data center to CLOUD.

Raghavendra Rao January 2, 2020

I am also facing same issue . The above answer is not resolving the issue

Like Gurpreet Ubhi likes this
Pavel Smajda January 2, 2020

@Raghavendra Rao  Put output from Jenkins here so we can see details.

Also check that you already have API Key generated https://confluence.xpand-it.com/display/XRAYCLOUD/Global+Settings%3A+API+Keys

Use the API key credentials from JIRA in Jenkins (Xray Configuration)

Raghavendra Rao January 5, 2020

 



Starting XRAY: Results Import Task... ########################################################## #### Xray is importing the feature files #### ########################################################## File: F:\selenium-cucumber\target\cucumber-reports\cucumber-json-report.json Starting to import results from cucumber-json-report.json ERROR: Step ‘Xray: Results Import Task’ failed: Unable to confirm Result of the upload..... Upload Failed! Status:404 Response:<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops, you&#39;ve found a dead link. - JIRA</title><script type="text/javascript">contextPath = "";</script><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/jquery-min.js'></script><script src='/static-assets/metal-all.js'></script><meta name="decorator" content="none" /></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state"><span class="error-type"></span><h1>Oops, you&#39;ve found a dead link.</h1><ul><li>Go back to the <a href="javascript&colon;window.history.back()">previous page</a></li><li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a></li></ul></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section><!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body"><ul class="atlassian-footer"> <li> Atlassian Jira <a class="seo-link" rel="nofollow" href="https://www.atlassian.com/software/jira">Project Management Software</a> <span id="footer-build-information">(v8.6.0#806000-<span title='737bcc05e3687605702e76b312ace69277496331' data-commit-id='737bcc05e3687605702e76b312ace69277496331}'>sha1:737bcc0</span>)</span> </li> <li> <a id="about-link" rel="nofollow" href="/secure/AboutPage.jspa/secure/AboutPage.jspa">About Jira</a> </li> <li> <a id="footer-report-problem-link" rel="nofollow" href="/secure/CreateIssue!default.jspa">Report a problem</a> </li></ul> <p class="atlassian-footer"> <span class="licensemessagered"> Powered by a free Atlassian <a rel='nofollow' href='http://www.atlassian.com/software/jira'>Jira evaluation license</a>. Please consider <a rel='nofollow' href='/plugins/servlet/applications/versions-licenses'>purchasing it</a> today. </span> </p><div id="footer-logo"><a href="http://www.atlassian.com/" rel="nofollow">Atlassian</a></div></section></footer><!-- #footer --></div><!-- #page --></body></html> Finished: FAILURE

I am trying to connect using jira server.

Raghavendra Rao January 5, 2020

When i am trying to connect JIRA Cloud. It is  not even login into XRAY Jira

Gurpreet Ubhi October 20, 2020

Is it working ?

4 votes
Abhishek Pal Singh
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!
May 15, 2021

I am facing a similar issue with some different log details? I putting the logs below. Any suggestion would be appreciated.

Starting to import results from cucumber-report.json

ERROR: Step ‘Xray: Results Import Task’ failed: Unable to confirm Result of the upload..... Upload Failed! Status:202 Response:{"error":"Import results request timed out! The import task is still running on the background."}

Finished: FAILURE

Joao Nuno Madeira Machado
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!
May 17, 2021

Having the same problem since May 15 :( 

Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2021

Hi @Abhishek Pal Singh  and @Joao Nuno Madeira Machado ,

Whenever an Xray customer does a request to the Xray Rest API, this request goes to a job queue that will process each job in order of entry. So, if the queue is empty, your request is processed almost immediately but when it happens a peak of requests, if the queue is full (or it already has some processes to run) it's normal that it takes more time to process your request because in this case the job is not processed immediately and it's waiting for their turn to be processed.
So, if the queue is full or almost full, it takes more time to process your request, and after some time our Server returns the message "Import results request timed out! The import task is still running on the background.", that means it was not possible to get a response (regarding the import request) in time from our server (timeout), but the request will be processed in the background and you should get the results imported as expected.
Note that it doesn't depend exactly on your side and the files you're trying to import, but mainly on the status of the queue at that time that is processing all the requests and the complexity of the previous requests that are being processed before your request.

If you are getting this message constantly it is best to contact the Xray Support (http://xraysupport.xpand-it.com ) so that we can investigate further.

Kind regards,
Rogério Paiva [Xray Support Team]

1 vote
Mikhail Makarenko
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!
May 17, 2021

Same failure, please help us out!

Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2021

Hi @Mikhail Makarenko  ,

Whenever an Xray customer does a request to the Xray Rest API, this request goes to a job queue that will process each job in order of entry. So, if the queue is empty, your request is processed almost immediately but when it happens a peak of requests, if the queue is full (or it already has some processes to run) it's normal that it takes more time to process your request because in this case the job is not processed immediately and it's waiting for their turn to be processed.
So, if the queue is full or almost full, it takes more time to process your request, and after some time our Server returns the message "Import results request timed out! The import task is still running on the background.", that means it was not possible to get a response (regarding the import request) in time from our server (timeout), but the request will be processed in the background and you should get the results imported as expected.
Note that it doesn't depend exactly on your side and the files you're trying to import, but mainly on the status of the queue at that time that is processing all the requests and the complexity of the previous requests that are being processed before your request.

If you are getting this message constantly it is best to contact the Xray Support (http://xraysupport.xpand-it.com ) so that we can investigate further.

Kind regards,
Rogério Paiva [Xray Support Team]

1 vote
CrazyAs5assin July 15, 2020

Hey any luck I am also getting the same error 

0 votes
Abhinay Sutrakar August 9, 2023

can someone help on this issue as still facing the below error :

 

Unable to confirm Result of the upload..... Upload Failed! Status:404

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events