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
Deprecated.
This hack may be removed in future versions
|
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)
Converts a string to
InternetAddress . |
static javax.mail.internet.InternetAddress |
StringToAddress(String strAddress,
String charset)
Deprecated.
|
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.@Deprecated 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
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="1.16") public static javax.mail.internet.InternetAddress StringToAddress(String strAddress, String charset) throws javax.mail.internet.AddressException, UnsupportedEncodingException
stringToAddress(java.lang.String, java.lang.String)
.javax.mail.internet.AddressException
UnsupportedEncodingException
@Nonnull public static javax.mail.internet.InternetAddress stringToAddress(@Nonnull String strAddress, @Nonnull String charset) throws javax.mail.internet.AddressException, UnsupportedEncodingException
InternetAddress
.strAddress
- Address stringcharset
- Charset (encoding) to be usedInternetAddress
for the specified stringjavax.mail.internet.AddressException
- Malformed addressUnsupportedEncodingException
- Unsupported encodingpublic static Mailer.DescriptorImpl descriptor()
Copyright © 2015. All rights reserved.