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

1 vote
Answer 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
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

321 views 0 6
Read article

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