Slide-O-Mix commented on Bug JENKINS-16404

Here is the code for Regression Trigger. I'll have to try and setup something with Maven to test out your issue.

public boolean trigger(AbstractBuild<?, ?> build) {
    if (build.getPreviousBuild() == null)
        return build.getResult() == Result.FAILURE;
    if (build.getTestResultAction() == null) return false;
    if (build.getPreviousBuild().getTestResultAction() == null)
        return build.getTestResultAction().getFailCount() > 0;
    return getNumFailures(build) > 
            getNumFailures(build.getPreviousBuild());
}
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