public class Mailer
extends hudson.tasks.Notifier
implements jenkins.tasks.SimpleBuildStep
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
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
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() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
static javax.mail.internet.InternetAddress |
StringToAddress(String strAddress,
String charset) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform, 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 void perform(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
perform
in interface jenkins.tasks.SimpleBuildStep
IOException
InterruptedException
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
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.