Class AbstractScriptTrigger
java.lang.Object
hudson.plugins.emailext.plugins.EmailTrigger
hudson.plugins.emailext.plugins.trigger.AbstractScriptTrigger
- All Implemented Interfaces:
ExtensionPoint
,Describable<EmailTrigger>
- Direct Known Subclasses:
PreBuildScriptTrigger
,ScriptTrigger
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
protected String
Deprecated. -
Constructor Summary
ConstructorDescriptionAbstractScriptTrigger
(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) 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) -
Method Summary
Modifier and TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
Deprecated.abstract boolean
Should this trigger run before the build? Defaults to false.protected Object
Called when object has been deserialized from a stream.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, createMailType, createMailType, getDescriptor, getEmail, getNumFailures, setEmail, shouldBypassThrottling
-
Field Details
-
secureTriggerScript
protected org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureTriggerScript -
triggerScript
Deprecated.
-
-
Constructor Details
-
AbstractScriptTrigger
-
AbstractScriptTrigger
@Deprecated public AbstractScriptTrigger(List<RecipientProvider> recipientProviders, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType, String triggerScript) throws Descriptor.FormException Deprecated.- Throws:
Descriptor.FormException
-
AbstractScriptTrigger
@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.
-
-
Method Details
-
getTriggerScript
Deprecated. -
getSecureTriggerScript
public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getSecureTriggerScript() -
configure
public boolean configure(@NonNull org.kohsuke.stapler.StaplerRequest2 req, @NonNull net.sf.json.JSONObject formData) - Overrides:
configure
in classEmailTrigger
-
isPreBuild
public abstract boolean isPreBuild()Description copied from class:EmailTrigger
Should this trigger run before the build? Defaults to false.- Overrides:
isPreBuild
in classEmailTrigger
- Returns:
- true if the trigger should be checked before the build.
-
trigger
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
-
readResolve
Called when object has been deserialized from a stream.- Returns:
this
, or a replacement forthis
.- Throws:
ObjectStreamException
- if the object cannot be restored.Descriptor.FormException
- See Also:
-