public abstract class AbstractScriptTrigger extends EmailTrigger
Modifier and Type | Field and Description |
---|---|
protected org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript |
secureTriggerScript |
protected String |
triggerScript
Deprecated.
|
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,
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureTriggerScript) |
AbstractScriptTrigger(List<RecipientProvider> recipientProviders,
String recipientList,
String replyTo,
String subject,
String body,
String attachmentsPattern,
int attachBuildLog,
String contentType,
String triggerScript)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript |
getSecureTriggerScript() |
String |
getTriggerScript()
Deprecated.
|
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 org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureTriggerScript
@Deprecated protected transient String triggerScript
public AbstractScriptTrigger(List<RecipientProvider> recipientProviders, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType, org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureTriggerScript)
@Deprecated 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)
@Deprecated public String getTriggerScript()
public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getSecureTriggerScript()
public boolean configure(@Nonnull org.kohsuke.stapler.StaplerRequest req, @Nonnull 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 © 2016–2020. All rights reserved.