Details
-
Patch
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Platform: All, OS: All
Description
I find it useful when using Hudson to queue up deployments across a cluster of
servers to send a pre-build(pre-deploy in my case) email as well as a
post-build(post-deploy) email. Email-ext can be easily extended via my patch to
enable an additional, pre-build trigger.
Note that I had to also tweak SuccessTrigger because it was firing even when the
build had not really begun yet since it was only looking at the result status
for each build. Since a build that hasn't started yet always has a result of
Success it always fired. No other triggers have this problem because they all
look for results other than Success.
Code changed in hudson
User: : mindless
Path:
trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java
trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/EmailTrigger.java
trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildTrigger.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=25486
Log:
[FIXED JENKINS-4190] Add "Before Build" trigger type, based on patch from akarl16.
Also don't add MailMessageIdAction to build if it already has one.