public abstract class AbstractScriptTrigger extends EmailTrigger
Modifier and Type | Field and Description |
---|---|
protected String |
triggerScript |
Constructor and Description |
---|
AbstractScriptTrigger(boolean sendToList,
boolean sendToDevs,
boolean sendToRequester,
boolean sendToCulprits,
String recipientList,
String replyTo,
String subject,
String body,
String attachmentsPattern,
int attachBuildLog,
String contentType,
String triggerScript)
Deprecated.
|
AbstractScriptTrigger(List<RecipientProvider> recipientProviders,
String recipientList,
String replyTo,
String subject,
String body,
String attachmentsPattern,
int attachBuildLog,
String contentType,
String triggerScript) |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
String |
getTriggerScript() |
abstract boolean |
isPreBuild()
Should this trigger run before the build? Defaults to false.
|
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.
|
all, allWatchable, createMailType, createMailType, getDescriptor, getEmail, getNumFailures, setEmail
protected String triggerScript
public AbstractScriptTrigger(List<RecipientProvider> recipientProviders, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType, String triggerScript)
@Deprecated public AbstractScriptTrigger(boolean sendToList, boolean sendToDevs, boolean sendToRequester, boolean sendToCulprits, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType, String triggerScript)
public String getTriggerScript()
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
configure
in class EmailTrigger
public abstract boolean isPreBuild()
EmailTrigger
isPreBuild
in class EmailTrigger
public boolean trigger(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener)
EmailTrigger
trigger
in class EmailTrigger
build
- The Build object after the project has been builtlistener
- Used for logging to the build logCopyright © 2004-2015. All Rights Reserved.