Set gradle build failed/unstable in Jenkins


(Chris L) #1

In gradle,
test.ignoreFailures true
will allow build to continue even if there are junit test failures. And this is a desired behavior.

What we want is to set the FINAL build result to failed. Or at least let Jenkins know the final result FAILED or UNSTABLE. What is the best approach?