public abstract class EmailTrigger extends Object implements hudson.model.Describable<EmailTrigger>, hudson.ExtensionPoint
| Modifier | Constructor and Description |
|---|---|
protected |
EmailTrigger(boolean sendToList,
boolean sendToDevs,
boolean sendToRequestor,
String recipientList,
String replyTo,
String subject,
String body,
String attachmentsPattern,
int attachBuildLog) |
protected |
EmailTrigger(net.sf.json.JSONObject formData) |
| Modifier and Type | Method and Description |
|---|---|
static hudson.DescriptorExtensionList<EmailTrigger,EmailTriggerDescriptor> |
all() |
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
protected EmailType |
createMailType(net.sf.json.JSONObject formData) |
EmailTriggerDescriptor |
getDescriptor() |
EmailType |
getEmail()
Get the email that is with this trigger.
|
protected int |
getNumFailures(hudson.model.AbstractBuild<?,?> build)
Determine the number of direct failures in the given build.
|
boolean |
isPreBuild()
Should this trigger run before the build? Defaults to false.
|
void |
setEmail(EmailType email) |
abstract boolean |
trigger(hudson.model.AbstractBuild<?,?> build,
hudson.model.TaskListener listener)
Implementors of this method need to return true if the conditions to
trigger an email have been met.
|
protected EmailTrigger(boolean sendToList,
boolean sendToDevs,
boolean sendToRequestor,
String recipientList,
String replyTo,
String subject,
String body,
String attachmentsPattern,
int attachBuildLog)
protected EmailTrigger(net.sf.json.JSONObject formData)
public static hudson.DescriptorExtensionList<EmailTrigger,EmailTriggerDescriptor> all()
public abstract boolean trigger(hudson.model.AbstractBuild<?,?> build,
hudson.model.TaskListener listener)
build - The Build object after the project has been builtpublic EmailType getEmail()
public void setEmail(EmailType email)
public EmailTriggerDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<EmailTrigger>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
protected int getNumFailures(hudson.model.AbstractBuild<?,?> build)
public boolean isPreBuild()
protected EmailType createMailType(net.sf.json.JSONObject formData)
Copyright © 2004-2013. All Rights Reserved.