Package hudson.tasks
Class MailSender
java.lang.Object
hudson.tasks.MailSender
Core logic of sending out notification e-mail.
- Author:
- Jesse Glick, Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanDeprecated.This hack may be removed in future versions -
Constructor Summary
ConstructorsConstructorDescriptionMailSender(String recipients, boolean dontNotifyEveryUnstableBuild, boolean sendToIndividuals) MailSender(String recipients, boolean dontNotifyEveryUnstableBuild, boolean sendToIndividuals, String charset) MailSender(String recipients, boolean dontNotifyEveryUnstableBuild, boolean sendToIndividuals, String charset, Collection<AbstractProject> includeUpstreamCommitters) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanartifactMatches(String path, AbstractBuild<?, ?> build) Check whether a path (/-separated) will be archived.protected jakarta.mail.internet.MimeMessagecreateMail(Run<?, ?> build, TaskListener listener) booleanexecute(AbstractBuild<?, ?> build, BuildListener listener) Deprecated.protected jakarta.mail.internet.MimeMessagegetMail(AbstractBuild<?, ?> build, BuildListener listener) Deprecated.final voidrun(Run<?, ?> build, TaskListener listener)
-
Field Details
-
debug
Deprecated.This hack may be removed in future versionsDebug probe point to be activated by the scripting console.
-
-
Constructor Details
-
MailSender
public MailSender(String recipients, boolean dontNotifyEveryUnstableBuild, boolean sendToIndividuals) -
MailSender
-
MailSender
public MailSender(String recipients, boolean dontNotifyEveryUnstableBuild, boolean sendToIndividuals, String charset, Collection<AbstractProject> includeUpstreamCommitters)
-
-
Method Details
-
execute
@Deprecated public boolean execute(AbstractBuild<?, ?> build, BuildListener listener) throws InterruptedExceptionDeprecated.- Throws:
InterruptedException
-
run
- Throws:
InterruptedException
-
getMail
@Deprecated protected jakarta.mail.internet.MimeMessage getMail(AbstractBuild<?, ?> build, BuildListener listener) throws jakarta.mail.MessagingException, UnsupportedEncodingException, InterruptedExceptionDeprecated.- Throws:
jakarta.mail.MessagingExceptionUnsupportedEncodingExceptionInterruptedException
-
createMail
@CheckForNull protected jakarta.mail.internet.MimeMessage createMail(Run<?, ?> build, TaskListener listener) throws jakarta.mail.MessagingException, UnsupportedEncodingException, InterruptedException- Throws:
jakarta.mail.MessagingExceptionUnsupportedEncodingExceptionInterruptedException
-
artifactMatches
Check whether a path (/-separated) will be archived.- Parameters:
build- current buildpath- given path, separated by/- Returns:
- always returns
falseto not archive anything
-