Issue Type: Bug Bug
Assignee: Alex Earl
Components: email-ext
Created: 05/Mar/14 8:01 AM
Description:

Curently regressionTrigger triggers email when THERE IS DIFFERENCE in failed tests, which doesn't cover fully regressions.
Example: build #1 testA failed, test B ok
build #2: testA ok, test B failed.
In both cases 1 failed so for build #2 regressiontrigger won't trigger email.

return build.getTestResultAction().getFailCount() >
previousBuild.getTestResultAction().getFailCount();

But in fact it is the regression because new test failed.

So modify existing RegressionTrigger or add new 'NewFailedTestsRegressionTrigger' with
public boolean trigger(AbstractBuild<?, ?> build, TaskListener listener) {
....
for (test in build.getTestResultAction().getFailedTests()){
if (test.getAge() == 1) { return true; }
}
return false;

Project: Jenkins
Priority: Major Major
Reporter: Tomasz Bechh
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

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to