Class RepeatedTestClaimMessage


  • public final class RepeatedTestClaimMessage
    extends Object
    • Field Detail

      • LINE_SEPARATOR

        protected static final String LINE_SEPARATOR
    • Constructor Detail

      • RepeatedTestClaimMessage

        public RepeatedTestClaimMessage​(String item,
                                        String url,
                                        String claimedByUser,
                                        List<hudson.tasks.junit.CaseResult> failedTests)
    • Method Detail

      • getSpecificMessage

        protected String getSpecificMessage()
      • mustBeSent

        protected boolean mustBeSent()
      • getSubject

        protected String getSubject()
      • getMessage

        protected String getMessage()
      • getToRecipients

        protected Iterable<? extends String> getToRecipients()
      • 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 email
        IOException - 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