Package hudson.plugins.claim.messages
Class RepeatedTestClaimMessage
- java.lang.Object
-
- hudson.plugins.claim.messages.RepeatedTestClaimMessage
-
public final class RepeatedTestClaimMessage extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
LINE_SEPARATOR
-
Constructor Summary
Constructors Constructor Description RepeatedTestClaimMessage(String item, String url, String claimedByUser, List<hudson.tasks.junit.CaseResult> failedTests)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
buildJenkinsUrl()
Get the jenkins url for the item.protected String
getClaimedByUser()
Gets the claiming user.protected String
getItem()
Gets the item.protected String
getMessage()
protected String
getSpecificMessage()
protected String
getSubject()
protected Iterable<? extends String>
getToRecipients()
protected boolean
mustBeSent()
void
send()
Creates and send the communication.
-
-
-
Field Detail
-
LINE_SEPARATOR
protected static final String LINE_SEPARATOR
-
-
Method Detail
-
getSpecificMessage
protected String getSpecificMessage()
-
mustBeSent
protected boolean mustBeSent()
-
getSubject
protected String getSubject()
-
getMessage
protected String getMessage()
-
getItem
protected String getItem()
Gets the item.- Returns:
- the item
-
getClaimedByUser
protected String getClaimedByUser()
Gets the claiming user.- Returns:
- the claiming user
-
send
public void send() throws jakarta.mail.MessagingException, IOException
Creates and send the communication.- Throws:
jakarta.mail.MessagingException
- if there has been some problem with sending the emailIOException
- if there has been some problem with the mail content
-
buildJenkinsUrl
@NonNull protected String buildJenkinsUrl()
Get the jenkins url for the item.- Returns:
- The jenkins url for the item
-
-