Can Bamboo use STDOUT for JUnit results?

I'm running Bamboo 4 & currently have my system's unit tests running through a wrapper script (bash script running Perl's 'prove' command) but I would like to get Bamboo running the test runner (prove) directly for a little more purity.

The caveat is that the test executor (prove) outputs logs to STDOUT. In my wrapper script (bash) it's trivial to redirect the script's output to 'results-$BUILDNO.xml', which the JUnit Parser task picks up, but I cannot seem to replicate this when using 'prove' as the executable in Babmoo.

Is there a way to direct Bamboo to use STDOUT from a task in some way? Can I add a '> filename' into the arguments? Can I set up STDOUT as an artifact? Or something else?

1 answer

1 accepted

If you are using the Script Task using the inline option its possible to call your script and redirect the output to standard out just like you would on a bash prompt.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Jan 15, 2019 in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

258 views 4 1
Join discussion

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