public abstract class NthFailureTrigger extends EmailTrigger
Modifier and Type | Class and Description |
---|---|
static class |
NthFailureTrigger.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
protected int |
failureCount
Deprecated.
|
Constructor and Description |
---|
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.
|
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(List<RecipientProvider> recipientProviders,
String recipientList,
String replyTo,
String subject,
String body,
String attachmentsPattern,
int attachBuildLog,
String contentType) |
Modifier and Type | Method and Description |
---|---|
protected int |
getRequiredFailureCount() |
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, configure, createMailType, createMailType, getDescriptor, getEmail, getNumFailures, isPreBuild, setEmail
@Deprecated protected int failureCount
@Deprecated public NthFailureTrigger(int failureCount, List<RecipientProvider> recipientProviders, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType)
public NthFailureTrigger(List<RecipientProvider> recipientProviders, String recipientList, String replyTo, String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType)
@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)
protected int getRequiredFailureCount()
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.