As a continuous integration tool, Jenkins has been widely used. Just as a tool, Jenkins already has its own ecosystem, and there are more than 1300+ plugins supporting it. How to use and how to use jenkins better in practice has always been practiced and discussed by everyone. This series of articles will summarize and organize some details on how to use jenkins. This article will introduce how to set up emails in Jenkins.
Preparation
1. Install Jenkins
2. The plugin is installed on Jenkins
If you are ready, you can skip to the next step.
Install Jenkins
Official website: https://jenkins.io/zh/download/
Two methods:
One-click installation package, download the installation package corresponding to the operating system for installation
2) war package installation, this method requires everyone to install JDK in advance
How to install JDK and configure environment variables, please refer to online posts
Execute the following command directly after downloading
java -jar jenkins*.war
Those who have no foundation can use the first method, which is simple and fast.
In addition, there are a lot of information on the Internet about how to install Jenkins, so I won’t go into details here
Prepare plugin
The official plug-in Mailer is recommended. Generally, the latest Jenkins has integrated this plug-in, so you don’t need to install it after installing Jenkins.
If it is not installed, you can install it manually: System Management > Plug-in Management, after entering, search for the plug-in to install.
Reboot after installation is complete
The following takes the 163 mailbox as an example to introduce how to set up the sending mail service.
Setup steps
system administrator account
Path: System Management -> System Settings -> Jenkins Location -> System Administrator Email Address
Set the administrator email address for subsequent emails.
SMTP server
Path: System Management -> System Settings -> Email Notification -> SMTP Server
Set the smtp server for system administrator email
SMTP authentication
Path: System Management -> System Settings -> Email Notification -> Advanced -> Use SMTP Authentication
The user name is the system administrator email address
The password is the authentication token
If the mailbox is a 163 server, you need to set the client authorization password
send test
Path: System Management -> System Settings -> Email Notification -> Test Configuration by Sending Test Email
After a successful test
Log in to the test user mailbox to confirm that you can receive emails (may go into spam)
and the configuration is successful!
[The following is the most complete software test engineer learning knowledge architecture system diagram in 2023 that I compiled]
1. From entry to mastery of Python programming
2. Interface automation project actual combat
3. Actual Combat of Web Automation Project
4. Actual Combat of App Automation Project
5. Resume of first-tier manufacturers
6. Test and develop DevOps system
7. Commonly used automated testing tools
Eight, JMeter performance test
9. Summary (little surprise at the end)
life is long so add oil. Every effort will not be let down, as long as you persevere, there will be rewards in the end. Cherish your time and pursue your dreams. Don't forget the original intention, forge ahead. Your future is in your hands!
Life is short, time is precious, we cannot predict what will happen in the future, but we can grasp the present moment. Cherish every day and work hard to make yourself stronger and better. Firm belief, persistent pursuit, success will eventually belong to you!
Only by constantly challenging yourself can you constantly surpass yourself. Persist in pursuing your dreams and move forward bravely, and you will find that the process of struggle is so beautiful and worthwhile. Believe in yourself, you can do it!