Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,283
Community Members
 
Community Events
168
Community Groups

XRay for JIRA: Results import Task does not support Jenkins slaves

Edited

Problem was solved by updating to newest version.

 

XRay for JIRA: Results import Task was not able to read the output.xml generated by Robot Framework tests when run on a Jenkins slave (error message below). There was no problem when running on master.

Could this be fixed to support Jenkins slaves?

 

ERROR: File path is a directory or the file doesn't exist
ERROR: Step ‘Xray: Results Import Task’ aborted due to exception: 
java.io.IOException: File path is a directory or the file doesn't exist
	at com.xpandit.plugins.xrayjenkins.task.XrayImportBuilder.getReportFile(XrayImportBuilder.java:130)
	at com.xpandit.plugins.xrayjenkins.task.XrayImportBuilder.perform(XrayImportBuilder.java:190)
Caused: java.io.IOException
	at com.xpandit.plugins.xrayjenkins.task.XrayImportBuilder.perform(XrayImportBuilder.java:220)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
	at hudson.model.Build$BuildExecution.post2(Build.java:186)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
	at hudson.model.Run.execute(Run.java:1840)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

 

1 answer

1 accepted

0 votes
Answer accepted

Hi Anssi,

 

Can you please open a ticket in our Support?

We need more information to help you.

 

Best regards,

Team Xray

Build step 'Execute Windows batch command' marked build as failure
Starting XRAY: Results Import Task...
##########################################################
####     Xray is importing the execution results      ####
##########################################################
ERROR: Step ‘Xray: Results Import Task’ aborted due to exception: 
java.io.IOException: \\exportfoldername does not exist.
 at hudson.FilePath.glob(FilePath.java:1975)
 at hudson.FilePath.access$3400(FilePath.java:212)
 at hudson.FilePath$ListGlob.invoke(FilePath.java:1949)
 at hudson.FilePath$ListGlob.invoke(FilePath.java:1937)
 at hudson.FilePath.act(FilePath.java:1076)
 at hudson.FilePath.act(FilePath.java:1059)
 at hudson.FilePath.list(FilePath.java:1935)
 at com.xpandit.plugins.xrayjenkins.Utils.FileUtils.getFiles(FileUtils.java:157)
 at com.xpandit.plugins.xrayjenkins.task.XrayImportBuilder.perform(XrayImportBuilder.java:488)
 at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:753)
 at hudson.model.Build$BuildExecution.post2(Build.java:177)
 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:698)
 at hudson.model.Run.execute(Run.java:1919)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson.model.ResourceController.execute(ResourceController.java:97)
 at hudson.model.Executor.run(Executor.java:428)
Finished: FAILURE

I have the same issue. How I can resolve it?

Hi @Motsar, Daria 

It should be an error caused by some mistake in the configuration of the file's directory/folder.

For additional help, please get in touch with Xray Support (http://Xraysupport.getXray.app); we would gladly assist you.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Hi @Motsar, Daria 

As stated at the start of my original post, this issue was resolved by updating to the latest Xray version. We somehow had a link to some early version of Xray and had used it at our Jenkins slaves.

Best Regards
Anssi

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events