Class NthFailureTrigger

    • Field Detail

      • failureCount

        @Deprecated
        protected int failureCount
        Deprecated.
    • Constructor Detail

      • NthFailureTrigger

        @Deprecated
        public NthFailureTrigger​(int failureCount,
                                 List<RecipientProvider> recipientProviders,
                                 String recipientList,
                                 String replyTo,
                                 String subject,
                                 String body,
                                 String attachmentsPattern,
                                 int attachBuildLog,
                                 String contentType)
        Deprecated.
        override getRequiredFailureCount instead of passing in failureCount
      • NthFailureTrigger

        @Deprecated
        public NthFailureTrigger​(int failureCount,
                                 boolean sendToList,
                                 boolean sendToDevs,
                                 boolean sendToRequester,
                                 boolean sendToCulprits,
                                 String recipientList,
                                 String replyTo,
                                 String subject,
                                 String body,
                                 String attachmentsPattern,
                                 int attachBuildLog,
                                 String contentType)
        Deprecated.
    • Method Detail

      • getRequiredFailureCount

        protected int getRequiredFailureCount()
      • 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