I don't think this is a bug because if you run the same goals on a dev
computer, you will see that with tests failure, maven set the build result
to "build failure".

You can add an option to maven to prevent it to set the build result to
"build failure" : -Dmaven.test.failure.ignore=true.

I think this is not a really good idea because a test failure should be a
critical point and you process should end when there are tests
failure/error as well as when there are compilations errors.

--
Adrien Lecharpentier


Le 11 avril 2012 11:23, ffromm <[email protected]> a écrit :

> Hi,
>
> I have a question about the execution of post build steps in maven
> builds with test failures:
>
> In a maven project there are 3 options to run post steps:
>
> - Run only if build succeeds
> - Run only if build succeeds or is unstable
> - Run regardless of build result
>
> The last one is the default.
>
> I understand these option that choosing the first one "Run only if
> build succeeds" no post steps are executed if the build is unstable.
> No shell scripts, no trigger of other builds, etc. Is that right?
>
> Because, right now, having "Run only if build succeeds" set, I find
> "[ERROR] There are test failures." in the build's log an and got a
> yellow ball, but still the configured child job gets triggered and
> executed using the parameterized trigger plugin.
>
> Is this intended to be like this or is this a bug?
>
> Any explication is appreciated. Thanks.
>
> Frederik Fromm

Reply via email to