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,
boolean sendToCulprits,
String recipientList,
String replyTo,
String subject,
String body,
String attachmentsPattern,
int attachBuildLog,
String contentType)
Deprecated.
|
protected |
EmailTrigger(net.sf.json.JSONObject formData) |
protected |
EmailTrigger(List<RecipientProvider> recipientProviders,
String recipientList,
String replyTo,
String subject,
String body,
String attachmentsPattern,
int attachBuildLog,
String contentType) |
Modifier and Type | Method and Description |
---|---|
static hudson.DescriptorExtensionList<EmailTrigger,EmailTriggerDescriptor> |
all() |
static List<EmailTriggerDescriptor> |
allWatchable() |
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
protected EmailType |
createMailType(net.sf.json.JSONObject formData)
Deprecated.
|
protected EmailType |
createMailType(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
EmailTriggerDescriptor |
getDescriptor() |
EmailType |
getEmail()
Get the email that is with this trigger.
|
protected int |
getNumFailures(hudson.model.Run<?,?> 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.
|
@Deprecated protected EmailTrigger(boolean sendToList, boolean sendToDevs, boolean sendToRequestor, boolean sendToCulprits, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType)
protected EmailTrigger(List<RecipientProvider> recipientProviders, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType)
protected EmailTrigger(net.sf.json.JSONObject formData)
public static hudson.DescriptorExtensionList<EmailTrigger,EmailTriggerDescriptor> all()
public static List<EmailTriggerDescriptor> allWatchable()
public abstract boolean trigger(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener)
build
- The Build object after the project has been builtlistener
- Used for logging to the build logpublic 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)
@Deprecated protected EmailType createMailType(net.sf.json.JSONObject formData)
protected EmailType createMailType(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
protected int getNumFailures(hudson.model.Run<?,?> build)
build
- The project run to get the number of test failures for.public boolean isPreBuild()
Copyright © 2016–2020. All rights reserved.