public class ExtendedEmailPublisher
extends hudson.tasks.Notifier
implements hudson.matrix.MatrixAggregatable
Publisher
that sends notification e-mail.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.
|
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() |
ExtendedEmailPublisher(String project_recipient_list,
String project_content_type,
String project_default_subject,
String project_default_content,
String project_attachments,
String project_presend_script,
int project_attach_buildlog,
String project_replyto,
boolean project_save_output,
List<EmailTrigger> project_triggers,
MatrixTriggerMode matrixTriggerMode) |
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) |
List<EmailTrigger> |
getConfiguredTriggers()
Get the list of configured email triggers for this project.
|
ExtendedEmailPublisherDescriptor |
getDescriptor() |
MatrixTriggerMode |
getMatrixTriggerMode() |
Collection<? extends hudson.model.Action> |
getProjectActions(hudson.model.AbstractProject<?,?> project) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
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
@DataBoundConstructor public ExtendedEmailPublisher(String project_recipient_list, String project_content_type, String project_default_subject, String project_default_content, String project_attachments, String project_presend_script, int project_attach_buildlog, String project_replyto, boolean project_save_output, List<EmailTrigger> project_triggers, MatrixTriggerMode matrixTriggerMode)
public ExtendedEmailPublisher()
public List<EmailTrigger> getConfiguredTriggers()
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 ExtendedEmailPublisherDescriptor 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.