Class BuildingTrigger
- java.lang.Object
-
- hudson.plugins.emailext.plugins.EmailTrigger
-
- hudson.plugins.emailext.plugins.trigger.BuildingTrigger
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<EmailTrigger>
public class BuildingTrigger extends EmailTrigger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildingTrigger.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRIGGER_NAME
-
Constructor Summary
Constructors Constructor Description BuildingTrigger(boolean sendToList, boolean sendToDevs, boolean sendToRequester, boolean sendToCulprits, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType)
Deprecated.BuildingTrigger(List<RecipientProvider> recipientProviders, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
trigger(AbstractBuild<?,?> build, TaskListener listener)
Implementors of this method need to return true if the conditions to trigger an email have been met.-
Methods inherited from class hudson.plugins.emailext.plugins.EmailTrigger
all, allWatchable, configure, createMailType, createMailType, getDescriptor, getEmail, getNumFailures, isPreBuild, setEmail
-
-
-
-
Field Detail
-
TRIGGER_NAME
public static final String TRIGGER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
trigger
public boolean trigger(AbstractBuild<?,?> build, TaskListener listener)
Description copied from class:EmailTrigger
Implementors of this method need to return true if the conditions to trigger an email have been met.- Specified by:
trigger
in classEmailTrigger
- Parameters:
build
- The Build object after the project has been builtlistener
- Used for logging to the build log- Returns:
- true if the conditions have been met to trigger a build of this type
-
-