How do I see that a test (task) fails with Bamboo


I am evaluating bamboo, and I want to know how I can see a failure of a task in bamboo? Actually how to I indicate from the test to Bamboo that a failure has occurred? Most of the tests I have are script based and can be modified to indicate a failure. Currently they indicate a failure by different exit codes. I found this page ( which seems to indicate I need to make some sort of custom handler. But I wanted to make sure that was the case, or if there is a standard results handler that I could just modify my test scripts to use?

1 answer

Failures occur on exit > 0. If your test returns an exit value > 0 it will fail the build. The page you linked to is in regards to actually writing a Bamboo task. Bamboo tasks are like the source code checkout task, or the scp task or the command or script task. If you are using an existing Bamboo task like one of the aforementioned or JUnit or NUnit then you don't need to do anything special for a failed test to register as a failure. I know if it returns exit > 0 it will turn red as a failure, It may also Fail if it sees "ERROR" or "FAIL" though those may also be returning > 0 and therefore actually be registering based on the exit code.

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