Change By: Stéphane Bruckert (03/Jul/13 5:14 PM)
Description: In my job configuration, I selected all triggers, because I want as much information as possible. But I received two emails for the same build. I guess this is not normal.

{quote}
Build step 'Publish JUnit test result report' changed build result to UNSTABLE
Email was triggered for: Unstable
Email was triggered for: Regression
Sending email for trigger: Unstable
Sending email to: stephane.bruckert@........
Sending email for trigger: Regression
Sending email to: stephane.bruckert@........
Finished: UNSTABLE
{quote}

REGRESSION has a reason to be triggered because new unit tests failed.
However, UNSTABLE shouldn't be triggered because REGRESSION should override it.

The problem looks to be in {{src/main/java/hudson/plugins/emailext/plugins/trigger/RegressionTrigger.java}}. Contrary to {{NthFailureTrigger.java}} or {{StillUnstableTrigger.java}}, it doesn't call the method {{addTriggerNameToReplace}} in order to discard the previous triggers.

So, the descriptor of {{RegressionTrigger.java}} should have a constructor with the following content:

{
quote code:title=RegressionTrigger.java|borderStyle=solid }
public DescriptorImpl() {
    addTriggerNameToReplace(UnstableTrigger.TRIGGER_NAME);
}
{
quote code }

I am waiting for you to agree that this is a bug, before correcting it on the repository, if you agree.

Thank you very much!
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to