Copying JUnit/XML results from remote host to local build directory?

Do I need to use a custom script/SSH task to copy *.xml results that are generated on a remote test target in order to make use of the standard JUnit test results/parsing task?  Are there better/alternative ways to use remote-host (via a build-configuration variable) output XML within a build plan?

2 answers

0 vote

Andrew

I'm not sure what do you mean by remote test target? Does it mean that your build agent (running on host X) runs tests on a different host Y? If this is the case then SCP task might copy the output files for you.

The alternative could be running the build agent on the same host where tests should be executed. In such case copying test results will not be needed.

Thanks Krystian, unfortunately using an agent on the (non-build) target (ie. an existing VM outside of the elastic pool) wasn't an option, and the built-in on-demand SCP task provides agent --> target transfers only.  

I decided to go with a simpler solution (for now) -- retrieve remote files to associate with the build plan run using a stripped-down web server running on-target, copying files I need to a public docroot (ssh), then finally copying to the build-agent host.  The files are stamped with a unique run identifier, and cleaned-up after the run is complete.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,793 views 0 6
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you