Issue Type: Bug Bug
Affects Versions: current
Assignee: Stéphane Bruckert
Attachments: triggers.JPG
Components: email-ext
Created: 03/Jul/13 5:01 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.

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

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:

public DescriptorImpl()

Unknown macro: { addTriggerNameToReplace(UnstableTrigger.TRIGGER_NAME); }

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!

Due Date: 04/Jul/13 12:00 AM
Environment: Jenkins 1.513
Email-ext 2.28
Default email plugin "E-mail Notification" is NOT activated. This is a sure fact.
Fix Versions: current
Project: Jenkins
Labels: plugin
Priority: Major Major
Reporter: Stéphane Bruckert
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