![]() |
|
|
|
|
Change By:
|
Stéphane Bruckert
(03/Jul/13 5:54 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
IMHO,
this is not
normal
the expected behavior (or it is a bug) because a build with REGRESSIONS indirectly means that the build is UNSTABLE
.
{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:
{code:title=RegressionTrigger.java|borderStyle=solid} public DescriptorImpl() { addTriggerNameToReplace(UnstableTrigger.TRIGGER_NAME); } {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
[email protected].
For more options, visit
https://groups.google.com/groups/opt_out.