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

XRay - Jenkins pipeline support

Ludovic Cintrat May 11, 2018

Hi,

Is it planned to support Jenkins pipeline through XRay Jenkins plugin?

Also, is the source code for the XRay Jenkins plugin available somewhere? It would be convenient in order to configure the plugin (e.g. XrayInstance/ServerConfiguration; for the moment we have to inspect the .class files...) from Jenkins Groovy initialization (init.groovy.d)

Best regards,

Ludovic

2 answers

1 accepted

0 votes
Answer accepted
José Domingues May 14, 2018

Hi Ludovic,

Currently it does not have support for pipeline, but we have plans to include this in the next release of the Jenkins plugin.
We have this Improvement already reported in our backlog, here.
Regarding the source code, we're sorry but it is not available. 

 

Best regards,

Xpand Add-ons Team

Ludovic Cintrat May 14, 2018

Thank you José!

Diamantino Campos Aug 14, 2018

Hi Ludovic, 

 

Xray Jenkins plugin now supports Jenkins pipeline.

 

Best Regards,

Diamantino Campos

Like Ludovic Cintrat likes this
Ludovic Cintrat Aug 15, 2018

Thank you for the news Diamantino.

vishnu s s Sep 25, 2018

Hi,

can we have a groovy script for Jira-Xray server configuration for Jenkins xray plugin . As of now we configure the jiraurl,username and pwd in Jenkins/configure page UI. Since xray plugin source code is not available , can you provide a groovy script to automate the configuration part.

Thanks,

Vishnu

Xavier Fernandes Nov 13, 2018

Hello Vishnu,

please check the following documentation

https://confluence.xpand-it.com/display/XRAY/Integration+with+Jenkins

In this Documentation you will find some script examples.

But most importantly, I recommend you to use the Jenkins Snippet Generator. This generator will allow you to automatically generate your step script using the interface.

You will find an example on how to automatically generate your script at the end of the documentation page.

Best regards,

Xavier Fernandes.

1 vote
Pedro Oct 18, 2018

Would be nice to get the response of the pipeline execution as result of the pipeline in order to get the created issue/s.

Example:

def result = [$class: 'XrayImportBuilder',
                    endpointName: '/junit',
                    fixVersion: 'A',
                    importToSameExecution: 'true',
                    projectKey: 'B',
                    serverInstance: 'XX-XX',
                    testEnvironments: 'C',
                    testPlanKey: 'D',
                    importFilePath: 'junit.xml']

echo result

And then get the json result like you can see in the log execution:

{"testExecIssue":{"id":"13699","key":"DEV-1067","self":"http://localhost:8080/rest/api/2/issue/13699"}}

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Marketplace Apps & Integrations

Demo Den Ep. 4: Continuous Integration with CircleCI & Jira Software

Get ready! Demo Den Episode 4 is coming your way on Tuesday, May 28, 2018 with a Continuous Integration and Delivery special demo. CircleCI Director of Solutions Engineering, Eddie Webb will show us ...

521 views 0 4
Join discussion

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