hudson.plugins.emailext.plugins
Class EmailTrigger

java.lang.Object
  extended by hudson.plugins.emailext.plugins.EmailTrigger
Direct Known Subclasses:
FailureTrigger, FixedTrigger, PreBuildTrigger, StillFailingTrigger, StillUnstableTrigger, SuccessTrigger, UnstableTrigger

public abstract class EmailTrigger
extends java.lang.Object


Constructor Summary
EmailTrigger()
           
 
Method Summary
 boolean getDefaultSendToDevs()
           
 boolean getDefaultSendToList()
           
abstract  EmailTriggerDescriptor getDescriptor()
           
 EmailType getEmail()
          Get the email that is with this trigger.
 boolean isPreBuild()
          Should this trigger run before the build? Defaults to false.
 void setEmail(EmailType email)
           
abstract  boolean trigger(hudson.model.AbstractBuild<?,?> build)
          Implementors of this method need to return true if the conditions to trigger an email have been met.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailTrigger

public EmailTrigger()
Method Detail

trigger

public abstract boolean trigger(hudson.model.AbstractBuild<?,?> build)
Implementors of this method need to return true if the conditions to trigger an email have been met.

Parameters:
build - The Build object after the project has been built
Returns:
true if the conditions have been met to trigger a build of this type

getEmail

public EmailType getEmail()
Get the email that is with this trigger.

Returns:
the email

setEmail

public void setEmail(EmailType email)

getDescriptor

public abstract EmailTriggerDescriptor getDescriptor()

getDefaultSendToList

public boolean getDefaultSendToList()

getDefaultSendToDevs

public boolean getDefaultSendToDevs()

isPreBuild

public boolean isPreBuild()
Should this trigger run before the build? Defaults to false.



Copyright © 2010. All Rights Reserved.