Bamboo Fails a build just beacuse i dont have tests

I have configured a Maven project with goal as Clean package. the Compilation goes on fine and i see build successful message. In the next line , i see a message "Failing task since test cases were expected but none were found."

Is there a way i can get around this

1 answer

Check your build specific configuration - there is a place to specify whether or not tests are expected. If you have no test, then change configuration to reflect that so the build does not fail.

Go to your plan: Actions -> Configure Plan -> Default Job -> Tasks

Then if you have a Maven task, look at the bottom where it talks about Test results. Or it may be in another task depending on your plan configuration.

Could you please specify where i can set this --> not to fail build in case of no tests .. i Am new to Bamboo.. trying toexplore this

Did you found an answer?

Go to you job configuration and click edit, at the end of the page, there is a line which says:

Where should Bamboo look for the test result files?

 The box near the option "The build will produce test results." shouldn't be clicked

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

183 views 0 5
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