Alex Anderson edited a comment on Improvement JENKINS-8535

Would the following change be suitable to https://github.com/jenkinsci/grails-plugin/blob/master/src/main/java/com/g2one/hudson/grails/GrailsBuilder.java#L224?

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