Package hudson.plugins.claim
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
sendInitialBuildClaimEmailIfConfigured(User claimedByUser, User assignedByUser, String action, String reason, String url)
Sends an email to the assignee indicating that the given build has been assigned.static void
sendInitialTestClaimEmailIfConfigured(User claimedByUser, User assignedByUser, String action, String reason, String url)
Sends an email to the assignee indicating that the given test has been assigned.static void
sendRepeatedBuildClaimEmailIfConfigured(User claimedByUser, String action, String url)
Sends an email to the assignee indicating that the given build is still failing.static void
sendRepeatedTestClaimEmailIfConfigured(User claimedByUser, String action, String url, List<hudson.tasks.junit.CaseResult> failedTests)
Sends an email to the assignee indicating that the given tests are still failing.
-
-
-
Method Detail
-
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 userassignedByUser
- the assigner useraction
- the build/action which has been assignedreason
- the reason given for the assignmenturl
- the URL the user can view for the assigned build- Throws:
jakarta.mail.MessagingException
- if there has been some problem with sending the emailIOException
- 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 userassignedByUser
- the assigner useraction
- the build/action which has been assignedreason
- the reason given for the assignmenturl
- the URL the user can view for the assigned build- Throws:
jakarta.mail.MessagingException
- if there has been some problem with sending the emailIOException
- 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 useraction
- the build/action which has been assignedurl
- the URL the user can view for the assigned build- Throws:
jakarta.mail.MessagingException
- if there has been some problem with sending the emailIOException
- 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 useraction
- the build/action which has been assignedurl
- the URL the user can view for the assigned buildfailedTests
- the list of failed tests- Throws:
jakarta.mail.MessagingException
- if there has been some problem with sending the emailIOException
- if there is an IO problem when sending the mail
-
-