jenkins--Application--Plug-in using--mailer Plugin

Source: Internet
Author: User

This article is part of the Jenkins application system article, mostly from work and learning practice, part of the content from the official documents and users of the article, quoted articles will be in the "Reference" section of the original link, if inadvertently infringe your rights, please contact qq:46106962, If you need further communication, please join QQ Group: (Jenkins Learning Exchange) 469536515. Reprint and use please indicate the source.Mail Server ConfigurationFirst, set the system administrator mail address in Jenkins's system Management-> system settings, such as 123456@qq.com, and the system administrator email address to use the same suffix name and username in the mail notification below, or you will report an exception.
QQ Mail Service First StepLogin QQ Mailbox, open "Pop3/smtp" in "account" and obtain authorization code, the explanation of authorization code see HTTP://SERVICE.MAIL.QQ.COM/CGI-BIN/HELP?SUBTYPE=1&&NO=1001256 &&id=28.Second StepSet the mail server-related parameters in mail notification in Jenkins System Management-> system Setup, as shown in the following figure:

Special Tips"username" is consistent with the system administrator mail address, otherwise it will be reported as an exception when you test "send test mail Configuration": com.sun.mail.smtp.smtpsendfailedexception:501 Mail from Address must to same as authorization user
"Password" fill in the first step of the authorization code obtained, otherwise will report abnormal: javax.mail.authenticationfailedexception:535 Error
126 Mailbox ServiceSet the mail server-related parameters in mail notification in Jenkins System Management-> system Setup, as shown in the following figure:

Special TipsWhen using 126 of the mailbox service, SMTP port is the default port, that is, 25; you do not need to use the SSL protocol, and if you check the Use SSL protocol, you will report an exception: Javax.mail.MessagingException:Could not connect to SMTP Host:smtp.126.com, port:25;
Nested exception is:
Javax.net.ssl.SSLException:Unrecognized SSL message, plaintext connection
163 Mailbox Service personal email First StepLogin to 163 mailbox, set authorization code in "->" Pop3/smtp/imapSecond StepSet the mail server-related parameters in mail notification in Jenkins System Management-> system Setup, as shown in the following figure:

Special Tips"Password" is filled in the "first step" set in the authorization code, if the login password will report abnormal javax.mail.authenticationfailedexception:535 error:authentication Faile
With regard to the settings for SMTP server, the Help document for 163 messages is written "smtp.126.com" and do not write on the document but use the "smtp.163.com" 163 SMTP protocol available ports as follows:

Actual validation found that port 25 can also be used for the SSL protocol.

Enterprise Email settings for outgoing mail features in jobTo use the email feature in the job, you need to select Mail notification (mail notifcation), set up Recipient (Recipients), and multiple recipients to be separated by an English space in the after build operation. The following two options are available for "Mailer Plugin": "Send mail notifications for every unstable build"
This option is selected by default, and when a job fails or is unstable, an e-mail is sent to the person specified in the recipient "to send the message to the person responsible for the construction adversely"
When this option is selected, a message is sent to the code submitter that caused the build failure, and the mailbox suffix name is set in the "User mailbox default suffix" in the "Mail Notification", and if such a mailbox does not exist, the job fails because it is sent. I guess Mailer plugin will get the submitter name from the submission record of the SCM and then spell the mailbox and send the message together with the "User mailbox default suffix".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.