public class ExtendedEmailPublisher
extends hudson.tasks.Notifier
implements hudson.matrix.MatrixAggregatable
Publisher
that sends notification e-mail.Modifier and Type | Class and Description |
---|---|
static class |
ExtendedEmailPublisher.DescriptorImpl |
hudson.tasks.Publisher.DescriptorExtensionListImpl
Modifier and Type | Field and Description |
---|---|
String |
attachmentsPattern
The project wide set of attachments.
|
List<EmailTrigger> |
configuredTriggers
This is the list of email triggers that the project has configured
|
String |
contentType
The contentType of the emails for this project (text/html, text/plain, etc).
|
static String |
DEFAULT_BODY_TEXT |
static String |
DEFAULT_EMERGENCY_REROUTE_TEXT |
static String |
DEFAULT_RECIPIENTS_TEXT |
static String |
DEFAULT_SUBJECT_TEXT |
String |
defaultContent
The default body of the emails for this project.
|
String |
defaultSubject
The default subject of the emails for this project.
|
static ExtendedEmailPublisherDescriptor |
DESCRIPTOR |
static Map<String,EmailTriggerDescriptor> |
EMAIL_TRIGGER_TYPE_MAP |
String |
presendScript
The project's pre-send script.
|
static String |
PROJECT_DEFAULT_BODY_TEXT |
static String |
PROJECT_DEFAULT_SUBJECT_TEXT |
String |
recipientList
A comma-separated list of email recipient that will be used for every trigger.
|
Constructor and Description |
---|
ExtendedEmailPublisher() |
Modifier and Type | Method and Description |
---|---|
static void |
addEmailTriggerType(EmailTriggerDescriptor triggerType) |
hudson.matrix.MatrixAggregator |
createAggregator(hudson.matrix.MatrixBuild matrixbuild,
hudson.Launcher launcher,
hudson.model.BuildListener buildlistener) |
boolean |
getConfigured()
Return true if the project has been configured, otherwise returns false
|
List<EmailTrigger> |
getConfiguredTriggers()
Get the list of configured email triggers for this project.
|
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> |
getDescriptor() |
static Collection<String> |
getEmailTriggerNames() |
static Collection<EmailTriggerDescriptor> |
getEmailTriggers() |
static EmailTriggerDescriptor |
getEmailTriggerType(String mailerId) |
MatrixTriggerMode |
getMatrixTriggerMode() |
List<EmailTrigger> |
getNonConfiguredTriggers()
Get the list of non-configured email triggers for this project.
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
static List<EmailTrigger> |
getTriggersForNonConfiguredInstance() |
boolean |
isConfigured()
Return true if the project has been configured, otherwise returns false
|
boolean |
isExecuteOnMatrixNodes() |
boolean |
needsToRunAfterFinalized() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
boolean |
prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener) |
static void |
removeEmailTriggerType(EmailTriggerDescriptor triggerType) |
void |
setMatrixTriggerMode(MatrixTriggerMode matrixTriggerMode) |
getProjectAction, getProjectActions, perform
public static final Map<String,EmailTriggerDescriptor> EMAIL_TRIGGER_TYPE_MAP
public static final String DEFAULT_RECIPIENTS_TEXT
public static final String DEFAULT_SUBJECT_TEXT
public static final String DEFAULT_BODY_TEXT
public static final String DEFAULT_EMERGENCY_REROUTE_TEXT
public static final String PROJECT_DEFAULT_SUBJECT_TEXT
public static final String PROJECT_DEFAULT_BODY_TEXT
public String recipientList
public List<EmailTrigger> configuredTriggers
public String contentType
public String defaultSubject
public String defaultContent
public String attachmentsPattern
public String presendScript
@Extension public static final ExtendedEmailPublisherDescriptor DESCRIPTOR
public static void addEmailTriggerType(EmailTriggerDescriptor triggerType) throws EmailExtException
EmailExtException
public static void removeEmailTriggerType(EmailTriggerDescriptor triggerType)
public static EmailTriggerDescriptor getEmailTriggerType(String mailerId)
public static Collection<EmailTriggerDescriptor> getEmailTriggers()
public static Collection<String> getEmailTriggerNames()
public static List<EmailTrigger> getTriggersForNonConfiguredInstance()
public List<EmailTrigger> getConfiguredTriggers()
public List<EmailTrigger> getNonConfiguredTriggers()
public boolean isConfigured()
public boolean getConfigured()
public MatrixTriggerMode getMatrixTriggerMode()
public void setMatrixTriggerMode(MatrixTriggerMode matrixTriggerMode)
public boolean prebuild(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
prebuild
in interface hudson.tasks.BuildStep
prebuild
in class hudson.tasks.BuildStepCompatibilityLayer
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public boolean isExecuteOnMatrixNodes()
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized
in class hudson.tasks.Publisher
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Notifier
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild matrixbuild, hudson.Launcher launcher, hudson.model.BuildListener buildlistener)
createAggregator
in interface hudson.matrix.MatrixAggregatable
Copyright © 2004-2012. All Rights Reserved.