Jenkins first acquaintance 02: configure email sending

1. Jenkins comes with its own configuration (by default it will only send emails when it fails)

step

1 Configure the mailbox for sending emails

  1. Enter the Jenkins initial interface, find the system management in the left menu , click to enter the system settings
  2. Find the email notification option, click on Advanced and configure it

Email configuration icon
A big pit:

2 Configure the build operation in the project

  1. Go to the project configuration page, find the post-build operation , and click E-mail Notification

Positioning view

3 Configure recipient policies and information

Configure policies

2. Advanced settings for sending emails (through plug-ins)

premise

  1. Install the plugin: email-ext plugin
  2. Go to System Management -> System Settings to configure

        Fill out the following fields:

Fill in the example

Steps

1 Project configuration

  1. Select Post-Build Action -> Editable Email Notification

positioning icon

  1. Specific configuration display

Show 1
Show 2
Show 3
Show 4
Show 5

  1. After saving, the build can send the email successfully

Email sent successfully

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325970047&siteId=291194637