Class ClaimEmailer

java.lang.Object
hudson.plugins.claim.ClaimEmailer

public final class ClaimEmailer extends Object
Email utility class to allow sending of emails using the setup of the mailer plug-in to do so. If the mailer plug-in is not installed, then no emails are sent
  • Method Details

    • sendInitialBuildClaimEmailIfConfigured

      public static void sendInitialBuildClaimEmailIfConfigured(@Nonnull User claimedByUser, @Nonnull User assignedByUser, String action, String reason, String url) throws jakarta.mail.MessagingException, IOException
      Sends an email to the assignee indicating that the given build has been assigned.
      Parameters:
      claimedByUser - the claiming user
      assignedByUser - the assigner user
      action - the build/action which has been assigned
      reason - the reason given for the assignment
      url - the URL the user can view for the assigned build
      Throws:
      jakarta.mail.MessagingException - if there has been some problem with sending the email
      IOException - if there is an IO problem when sending the mail
    • sendInitialTestClaimEmailIfConfigured

      public static void sendInitialTestClaimEmailIfConfigured(@Nonnull User claimedByUser, @Nonnull User assignedByUser, String action, String reason, String url) throws jakarta.mail.MessagingException, IOException
      Sends an email to the assignee indicating that the given test has been assigned.
      Parameters:
      claimedByUser - the claiming user
      assignedByUser - the assigner user
      action - the build/action which has been assigned
      reason - the reason given for the assignment
      url - the URL the user can view for the assigned build
      Throws:
      jakarta.mail.MessagingException - if there has been some problem with sending the email
      IOException - if there is an IO problem when sending the mail
    • sendRepeatedBuildClaimEmailIfConfigured

      public static void sendRepeatedBuildClaimEmailIfConfigured(@Nonnull User claimedByUser, String action, String url) throws jakarta.mail.MessagingException, IOException
      Sends an email to the assignee indicating that the given build is still failing.
      Parameters:
      claimedByUser - the claiming user
      action - the build/action which has been assigned
      url - the URL the user can view for the assigned build
      Throws:
      jakarta.mail.MessagingException - if there has been some problem with sending the email
      IOException - if there is an IO problem when sending the mail
    • sendRepeatedTestClaimEmailIfConfigured

      public static void sendRepeatedTestClaimEmailIfConfigured(@Nonnull User claimedByUser, String action, String url, List<hudson.tasks.junit.CaseResult> failedTests) throws jakarta.mail.MessagingException, IOException
      Sends an email to the assignee indicating that the given tests are still failing.
      Parameters:
      claimedByUser - name of the claiming user
      action - the build/action which has been assigned
      url - the URL the user can view for the assigned build
      failedTests - the list of failed tests
      Throws:
      jakarta.mail.MessagingException - if there has been some problem with sending the email
      IOException - if there is an IO problem when sending the mail