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
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 yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

252 views 4 9
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