hudson.tasks
Class MailSender

java.lang.Object
  extended by hudson.tasks.MailSender

public class MailSender
extends Object

Core logic of sending out notification e-mail.

Author:
Jesse Glick, Kohsuke Kawaguchi

Field Summary
static boolean debug
           
 
Constructor Summary
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<hudson.model.AbstractProject> includeUpstreamCommitters)
           
 
Method Summary
protected  boolean artifactMatches(String path, hudson.model.AbstractBuild<?,?> build)
          Check whether a path (/-separated) will be archived.
 boolean execute(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
           
protected  javax.mail.internet.MimeMessage getMail(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug
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<hudson.model.AbstractProject> includeUpstreamCommitters)
Method Detail

execute

public boolean execute(hudson.model.AbstractBuild<?,?> build,
                       hudson.model.BuildListener listener)
                throws InterruptedException
Throws:
InterruptedException

getMail

protected javax.mail.internet.MimeMessage getMail(hudson.model.AbstractBuild<?,?> build,
                                                  hudson.model.BuildListener listener)
                                           throws javax.mail.MessagingException,
                                                  UnsupportedEncodingException,
                                                  InterruptedException
Throws:
javax.mail.MessagingException
UnsupportedEncodingException
InterruptedException

artifactMatches

protected boolean artifactMatches(String path,
                                  hudson.model.AbstractBuild<?,?> build)
Check whether a path (/-separated) will be archived.



Copyright © 2004-2013. All Rights Reserved.