public class Mailer extends Notifier implements 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.
|
Publisher.DescriptorExtensionListImplSimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactoryBuildStep.PublisherListExtensionPoint.LegacyInstancesAreScopedToHudson| 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.
|
BUILDERS, PUBLISHERS| Constructor and Description |
|---|
Mailer()
Deprecated.
|
Mailer(String recipients,
boolean notifyEveryUnstableBuild,
boolean sendToIndividuals) |
| Modifier and Type | Method and Description |
|---|---|
static Mailer.DescriptorImpl |
descriptor() |
BuildStepMonitor |
getRequiredMonitorService()
This class does explicit check pointing.
|
boolean |
isNotifyEveryUnstableBuild() |
boolean |
perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener) |
void |
perform(Run<?,?> build,
FilePath workspace,
Launcher launcher,
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.
|
getDescriptorall, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, prebuildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProjectAction, getProjectActions, prebuildprotected 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 - one or more recipients with separatorsnotifyEveryUnstableBuild - inverted for historical reasons.sendToIndividuals - if true mails are sent to individual committerspublic boolean isNotifyEveryUnstableBuild()
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
perform in interface BuildStepperform in class BuildStepCompatibilityLayerInterruptedExceptionIOExceptionpublic void perform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
perform in interface SimpleBuildStepIOExceptionInterruptedExceptionpublic BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface 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).InternetAddress.strAddress - Address stringcharset - Charset (encoding) to be usedInternetAddress for the specified stringjavax.mail.internet.AddressException - Malformed addressUnsupportedEncodingException - Unsupported encoding@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 © 2016–2021. All rights reserved.