Bamboo Fails a build just beacuse i dont have tests

Madhu Raj soudathikar May 15, 2012

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

5 votes
Bob Swift (personal)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2012

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.

Madhu Raj soudathikar May 15, 2012

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

Sebastien Tardif January 23, 2014

Did you found an answer?

Shadab Bigdel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2018

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

miratif_ali87
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2020

Thankyou @Shadab Bigdel .Its working now.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events