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 |
---|---|
boolean |
attachBuildLog
True to attach the log from the build to the email.
|
String |
attachmentsPattern
The project wide set of attachments.
|
boolean |
compressBuildLog
True to compress the log from the build before attaching to the email
|
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 |
MatrixTriggerMode |
matrixTriggerMode
How to trigger the email if the project is a matrix project.
|
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.
|
String |
replyTo
Reply-To value for the e-mail
|
boolean |
saveOutput
If true, save the generated email content to email-ext-message.[txt|html]
|
Constructor and Description |
---|
ExtendedEmailPublisher() |
Modifier and Type | Method and Description |
---|---|
hudson.matrix.MatrixAggregator |
createAggregator(hudson.matrix.MatrixBuild matrixbuild,
hudson.Launcher launcher,
hudson.model.BuildListener buildlistener) |
void |
debug(PrintStream p,
String format,
Object... args) |
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() |
MatrixTriggerMode |
getMatrixTriggerMode() |
Collection<? extends hudson.model.Action> |
getProjectActions(hudson.model.AbstractProject<?,?> project) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
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) |
void |
setMatrixTriggerMode(MatrixTriggerMode matrixTriggerMode) |
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
public boolean attachBuildLog
public boolean compressBuildLog
public String replyTo
public boolean saveOutput
public MatrixTriggerMode matrixTriggerMode
@Extension public static final ExtendedEmailPublisherDescriptor DESCRIPTOR
public List<EmailTrigger> getConfiguredTriggers()
public boolean isConfigured()
public boolean getConfigured()
public MatrixTriggerMode getMatrixTriggerMode()
public void setMatrixTriggerMode(MatrixTriggerMode matrixTriggerMode)
public void debug(PrintStream p, String format, Object... args)
public Collection<? extends hudson.model.Action> getProjectActions(hudson.model.AbstractProject<?,?> project)
getProjectActions
in interface hudson.tasks.BuildStep
getProjectActions
in class hudson.tasks.BuildStepCompatibilityLayer
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-2013. All Rights Reserved.