public class Mailer
extends hudson.tasks.Notifier
Publisher
that sends the build result in e-mail.Modifier and Type | Class and Description |
---|---|
static class |
Mailer.DescriptorImpl |
static class |
Mailer.UserProperty
Per user property that is e-mail address.
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
Modifier and Type | Field and Description |
---|---|
static boolean |
debug
Debug probe point to be activated by the scripting console.
|
static Mailer.DescriptorImpl |
DESCRIPTOR
Deprecated.
as of 1.286
Use
descriptor() to obtain the current instance. |
boolean |
dontNotifyEveryUnstableBuild
If true, only the first unstable build will be reported.
|
protected static Logger |
LOGGER |
String |
recipients
Whitespace-separated list of e-mail addresses that represent recipients.
|
boolean |
sendToIndividuals
If true, individuals will receive e-mails regarding who broke the build.
|
Constructor and Description |
---|
Mailer()
Deprecated.
|
Mailer(String recipients,
boolean notifyEveryUnstableBuild,
boolean sendToIndividuals) |
Modifier and Type | Method and Description |
---|---|
static Mailer.DescriptorImpl |
descriptor() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
This class does explicit check pointing.
|
boolean |
isNotifyEveryUnstableBuild() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
static javax.mail.internet.InternetAddress |
StringToAddress(String strAddress,
String charset) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
protected static final Logger LOGGER
public String recipients
public boolean dontNotifyEveryUnstableBuild
public boolean sendToIndividuals
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="1.355") public static Mailer.DescriptorImpl DESCRIPTOR
descriptor()
to obtain the current instance.public static boolean debug
@Deprecated public Mailer()
@DataBoundConstructor public Mailer(String recipients, boolean notifyEveryUnstableBuild, boolean sendToIndividuals)
recipients
- notifyEveryUnstableBuild
- inverted for historical reasons.sendToIndividuals
- public boolean isNotifyEveryUnstableBuild()
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
IOException
InterruptedException
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public static javax.mail.internet.InternetAddress StringToAddress(String strAddress, String charset) throws javax.mail.internet.AddressException, UnsupportedEncodingException
javax.mail.internet.AddressException
UnsupportedEncodingException
public static Mailer.DescriptorImpl descriptor()
Copyright © 2014. All rights reserved.