Would the following change be suitable?

if (r != 0) return false;

to

if (r != 0) {
    if (isBuildFailureDueToFailingTests()) {
        listener.finished(Result.UNSTABLE);
    } else {
        return false;
    }
}

If this isn't going to be fixed in Grails, `isBuildFailureDueToFailingTests()` could analyse the console output of the grails build and check for relevant string ("Tests PASSED" / "Tests FAILED"). What is a suitable approach for this? Presumably Jenkins is already capturing this output somewhere.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to