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

public abstract class AbstractScriptTrigger extends EmailTrigger
  • Field Details

    • secureTriggerScript

      protected org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureTriggerScript
    • triggerScript

      @Deprecated protected transient String triggerScript
      Deprecated.
  • Constructor Details

  • Method Details

    • getTriggerScript

      @Deprecated public String 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 class EmailTrigger
    • isPreBuild

      public abstract boolean isPreBuild()
      Description copied from class: EmailTrigger
      Should this trigger run before the build? Defaults to false.
      Overrides:
      isPreBuild in class EmailTrigger
      Returns:
      true if the trigger should be checked before the build.
    • trigger

      public boolean trigger(AbstractBuild<?,?> build, TaskListener listener)
      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 class EmailTrigger
      Parameters:
      build - The Build object after the project has been built
      listener - Used for logging to the build log
      Returns:
      true if the conditions have been met to trigger a build of this type
    • readResolve

      protected Object readResolve() throws ObjectStreamException, Descriptor.FormException
      Called when object has been deserialized from a stream.
      Returns:
      this, or a replacement for this.
      Throws:
      ObjectStreamException - if the object cannot be restored.
      Descriptor.FormException
      See Also: