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
- Enter the Jenkins initial interface, find the system management in the left menu , click to enter the system settings
- Find the email notification option, click on Advanced and configure it
A big pit:
2 Configure the build operation in the project
- Go to the project configuration page, find the post-build operation , and click E-mail Notification
3 Configure recipient policies and information
2. Advanced settings for sending emails (through plug-ins)
premise
- Install the plugin: email-ext plugin
- Go to System Management -> System Settings to configure
Fill out the following fields:
Steps
1 Project configuration
- Select Post-Build Action -> Editable Email Notification
- Specific configuration display
- After saving, the build can send the email successfully