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
Modifier and TypeFieldDescriptionstatic boolean
Deprecated.This hack may be removed in future versions -
Constructor Summary
ConstructorDescriptionMailSender
(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 boolean
artifactMatches
(String path, AbstractBuild<?, ?> build) Check whether a path (/-separated) will be archived.protected jakarta.mail.internet.MimeMessage
createMail
(Run<?, ?> build, TaskListener listener) boolean
execute
(AbstractBuild<?, ?> build, BuildListener listener) Deprecated.protected jakarta.mail.internet.MimeMessage
getMail
(AbstractBuild<?, ?> build, BuildListener listener) Deprecated.final void
run
(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.MessagingException
UnsupportedEncodingException
InterruptedException
-
createMail
@CheckForNull protected jakarta.mail.internet.MimeMessage createMail(Run<?, ?> build, TaskListener listener) throws jakarta.mail.MessagingException, UnsupportedEncodingException, InterruptedException- Throws:
jakarta.mail.MessagingException
UnsupportedEncodingException
InterruptedException
-
artifactMatches
Check whether a path (/-separated) will be archived.- Parameters:
build
- current buildpath
- given path, separated by/
- Returns:
- always returns
false
to not archive anything
-