Package hudson.tasks
Class MailSender
- java.lang.Object
-
- hudson.tasks.MailSender
-
public class MailSender extends Object
Core logic of sending out notification e-mail.- Author:
- Jesse Glick, Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
debug
Deprecated.This hack may be removed in future versions
-
Constructor Summary
Constructors Constructor Description MailSender(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected 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.void
run(Run<?,?> build, TaskListener listener)
-
-
-
Field Detail
-
debug
@Deprecated public static boolean debug
Deprecated.This hack may be removed in future versionsDebug probe point to be activated by the scripting console.
-
-
Constructor Detail
-
MailSender
public MailSender(String recipients, boolean dontNotifyEveryUnstableBuild, boolean sendToIndividuals)
-
MailSender
public MailSender(String recipients, boolean dontNotifyEveryUnstableBuild, boolean sendToIndividuals, String charset)
-
MailSender
public MailSender(String recipients, boolean dontNotifyEveryUnstableBuild, boolean sendToIndividuals, String charset, Collection<AbstractProject> includeUpstreamCommitters)
-
-
Method Detail
-
execute
@Deprecated public boolean execute(AbstractBuild<?,?> build, BuildListener listener) throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
run
public final void run(Run<?,?> build, TaskListener listener) throws InterruptedException
- Throws:
InterruptedException
-
getMail
@Deprecated protected jakarta.mail.internet.MimeMessage getMail(AbstractBuild<?,?> build, BuildListener listener) throws jakarta.mail.MessagingException, UnsupportedEncodingException, InterruptedException
Deprecated.- 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
protected boolean artifactMatches(String path, AbstractBuild<?,?> build)
Check whether a path (/-separated) will be archived.- Parameters:
build
- current buildpath
- given path, separated by/
- Returns:
- always returns
false
to not archive anything
-
-