Package hudson.tasks

Class Mailer

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep

public class Mailer extends Notifier implements SimpleBuildStep
Publisher that sends the build result in e-mail.
Author:
Kohsuke Kawaguchi
  • Field Details

    • LOGGER

      protected static final Logger LOGGER
    • recipients

      public String recipients
      Whitespace-separated list of e-mail addresses that represent recipients.
    • dontNotifyEveryUnstableBuild

      public boolean dontNotifyEveryUnstableBuild
      If true, only the first unstable build will be reported.
    • sendToIndividuals

      public boolean sendToIndividuals
      If true, individuals will receive e-mails regarding who broke the build.
    • DESCRIPTOR

      @Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("1.355") public static Mailer.DescriptorImpl DESCRIPTOR
      Deprecated.
      as of 1.286 Use descriptor() to obtain the current instance.
    • debug

      @Deprecated public static boolean debug
      Deprecated.
      This hack may be removed in future versions
      Debug probe point to be activated by the scripting console.
  • Constructor Details

    • Mailer

      @Deprecated public Mailer()
      Deprecated.
      Default Constructor. This is left for backward compatibility.
    • Mailer

      @DataBoundConstructor public Mailer(String recipients, boolean notifyEveryUnstableBuild, boolean sendToIndividuals)
      Parameters:
      recipients - one or more recipients with separators
      notifyEveryUnstableBuild - inverted for historical reasons.
      sendToIndividuals - if true mails are sent to individual committers
  • Method Details