How to make job passed if one of tasks was failed?

Eugene
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 25, 2016

Hi guys!

I have a plan with job, the job has two maven tasks. First task may failed or not, second final task performs failed tests from first task. If second task is passed - job should be green.

Could you please tell how can I do that? 

Thanks!

1 answer

1 accepted

1 vote
Answer accepted
Mariela Daventini
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 26, 2016

Hi Eugene:

Simple: The first maven task should have 

 -Dmaven.test.failure.ignore=true

Remember to unclick tests parser in Bamboo

Check maven documentation http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html

Eugene
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 26, 2016

Hi Mariela, thanks a lot!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events