Class AbstractScriptTrigger

    • Field Detail

      • secureTriggerScript

        protected org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureTriggerScript
    • Constructor Detail

      • AbstractScriptTrigger

        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)
      • 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 Detail

      • getSecureTriggerScript

        public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getSecureTriggerScript()
      • configure

        public boolean configure​(@NonNull
                                 org.kohsuke.stapler.StaplerRequest 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