Package hudson.plugins.emailext
Class ExtendedEmailPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
hudson.plugins.emailext.ExtendedEmailPublisher
- All Implemented Interfaces:
- ExtensionPoint,- Describable<Publisher>,- BuildStep
Publisher that sends notification e-mail.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classNested classes/interfaces inherited from class hudson.tasks.PublisherPublisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStepBuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFieldsModifier and TypeFieldDescriptionbooleanTrue to attach the log from the build to the email.The project wide set of attachments.booleanTrue to compress the log from the build before attaching to the emailThis is the list of email theTriggers that the project has configuredThe contentType of the emails for this project (text/html, text/plain, etc).static final Stringstatic final Stringstatic final StringThe default body of the emails for this project.The default subject of the emails for this project.booleanIf true, disables the publisher from running.From value for the e-mailHow to theTrigger the email if the project is a matrix project.static final Stringstatic final StringA comma-separated list of email recipient that will be used for every theTrigger.Reply-To value for the e-mailbooleanIf true, save the generated email content to email-ext-message.[txt|html]booleanFields inherited from interface hudson.tasks.BuildStepBUILDERS, PUBLISHERS
- 
Constructor SummaryConstructorsConstructorDescriptionExtendedEmailPublisher(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, String project_from, boolean project_save_output, List<EmailTrigger> project_triggers, MatrixTriggerMode matrixTriggerMode) Deprecated.ExtendedEmailPublisher(String recipientList, String contentType, String defaultSubject, String defaultContent, String attachmentsPattern, String presendScript, int attachBuildLog, String replyTo, String from, boolean saveOutput, List<EmailTrigger> configuredTriggers, MatrixTriggerMode matrixTriggerMode, boolean disabled, List<GroovyScriptPath> classpath) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddebug(PrintStream p, String format, Object... args) intGet the list of configured email theTriggers for this project.static Run<?,?> getPreviousRun(Run<?, ?> run, TaskListener listener) Looks for a previous build, so long as that is in fact completed.Collection<? extends Action>getProjectActions(AbstractProject<?, ?> project) List<org.jenkinsci.plugins.tokenmacro.TokenMacro>booleanbooleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) booleanprebuild(AbstractBuild<?, ?> build, BuildListener listener) voidsetClasspath(List<GroovyScriptPath> classpath) voidsetMatrixTriggerMode(MatrixTriggerMode matrixTriggerMode) voidsetPostsendScript(String postsendScript) voidsetPresendScript(String presendScript) Methods inherited from class hudson.tasks.Publisherall, getProjectAction, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayergetProjectAction, perform
- 
Field Details- 
DEFAULT_SUBJECT_TEXT- See Also:
 
- 
DEFAULT_BODY_TEXT- See Also:
 
- 
DEFAULT_EMERGENCY_REROUTE_TEXT- See Also:
 
- 
PROJECT_DEFAULT_SUBJECT_TEXT- See Also:
 
- 
PROJECT_DEFAULT_BODY_TEXT- See Also:
 
- 
recipientListA comma-separated list of email recipient that will be used for every theTrigger.
- 
configuredTriggersThis is the list of email theTriggers that the project has configured
- 
contentTypeThe contentType of the emails for this project (text/html, text/plain, etc).
- 
defaultSubjectThe default subject of the emails for this project. ($PROJECT_DEFAULT_SUBJECT)
- 
defaultContentThe default body of the emails for this project. ($PROJECT_DEFAULT_BODY)
- 
attachmentsPatternThe project wide set of attachments.
- 
attachBuildLogpublic boolean attachBuildLogTrue to attach the log from the build to the email.
- 
compressBuildLogpublic boolean compressBuildLogTrue to compress the log from the build before attaching to the email
- 
replyToReply-To value for the e-mail
- 
fromFrom value for the e-mail
- 
saveOutputpublic boolean saveOutputIf true, save the generated email content to email-ext-message.[txt|html]
- 
disabledpublic boolean disabledIf true, disables the publisher from running.
- 
throttlingEnabledpublic boolean throttlingEnabled
- 
matrixTriggerModeHow to theTrigger the email if the project is a matrix project.
 
- 
- 
Constructor Details- 
ExtendedEmailPublisherpublic ExtendedEmailPublisher()
- 
ExtendedEmailPublisher@Deprecated 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, String project_from, boolean project_save_output, List<EmailTrigger> project_triggers, MatrixTriggerMode matrixTriggerMode) Deprecated.
- 
ExtendedEmailPublisher@DataBoundConstructor public ExtendedEmailPublisher(String recipientList, String contentType, String defaultSubject, String defaultContent, String attachmentsPattern, String presendScript, int attachBuildLog, String replyTo, String from, boolean saveOutput, List<EmailTrigger> configuredTriggers, MatrixTriggerMode matrixTriggerMode, boolean disabled, List<GroovyScriptPath> classpath) 
 
- 
- 
Method Details- 
getClasspath
- 
setClasspath
- 
setPresendScript
- 
getAttachBuildLogpublic int getAttachBuildLog()
- 
setPostsendScript
- 
getPresendScript
- 
getPostsendScript
- 
getConfiguredTriggersGet the list of configured email theTriggers for this project.- Returns:
- The list of triggers configure for this publisher instance
 
- 
getMatrixTriggerMode
- 
setMatrixTriggerMode
- 
getProjectActions- Specified by:
- getProjectActionsin interface- BuildStep
- Overrides:
- getProjectActionsin class- BuildStepCompatibilityLayer
 
- 
debug
- 
prebuild- Specified by:
- prebuildin interface- BuildStep
- Overrides:
- prebuildin class- BuildStepCompatibilityLayer
 
- 
perform- Specified by:
- performin interface- BuildStep
- Overrides:
- performin class- BuildStepCompatibilityLayer
 
- 
getRuntimeMacrospublic List<org.jenkinsci.plugins.tokenmacro.TokenMacro> getRuntimeMacros(ExtendedEmailPublisherContext context) 
- 
isExecuteOnMatrixNodespublic boolean isExecuteOnMatrixNodes()
- 
needsToRunAfterFinalizedpublic boolean needsToRunAfterFinalized()- Overrides:
- needsToRunAfterFinalizedin class- Publisher
 
- 
getRequiredMonitorService
- 
getPreviousRunLooks for a previous build, so long as that is in fact completed. Necessary sincegetRequiredMonitorService()does not wait for the previous build, so in the case of parallel-capable jobs, we need to behave sensibly when a later build actually finishes before an earlier one.- Parameters:
- run- a run for which we may be sending mail
- listener- a listener to which we may print warnings in case the actual previous build is still in progress
- Returns:
- the previous build, or null if that build is missing, or is still in progress
 
- 
getDescriptor- Specified by:
- getDescriptorin interface- Describable<Publisher>
- Overrides:
- getDescriptorin class- Notifier
 
- 
descriptor
- 
readResolve
 
-