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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can't POST Xray results from Jenkins

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

 

2 answers

1 accepted

0 votes
Answer accepted

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

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

Like Gurpreet Ubhi likes this

@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)

 



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.

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

Hey any luck I am also getting the same error 

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you