Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed explanation of Jenkins configuration email Notification Picture and text

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

In this paper, through my real personal test available, a summary of various articles on the Internet, the relevant reference links at the end of the article.

Premise preparation environment

Check to see if the plug-in has been installed

Use the Email Extension Plugin plug-in to send mail notifications by installing it.

Second, check whether the mailbox has SMTP service.

This configuration and email sending are all carried out through QQ Mail.

1. Open the mailbox link: https://mail.qq.com

2. After logging in, click "Settings"-account, drop down to the bottom, and check whether the services are enabled normally. If not, click Open.

System environment configuration

Enter jenkins--- > system Management-> system Settings

1. Configure Jenkins Location

2. Configure Extended E-mail Notification

Click Advanced and fill in the following

Default Subject, fill in the following

Build notification: $PROJECTNAME-Build# $BUILDNUMBER-$BUILDSTATUS!

Default Content, fill in the following

This email is sent automatically by the program, please do not reply! Project name: $PROJECT_NAME build number: $BUILD_NUMBERgit version number: ${GIT_REVISION} build status: $BUILD_STATUS trigger reason: ${CAUSE} build log address: ${BUILD_URL} console build address: $BUILD_URL changeset: ${JELLY_SCRIPT,template= "html"}

3 、

First, enter the configuration in a certain project

II. Configuration

III. Advanced configuration

Add tiger,Recipient List at Failure-Any or the mail will not be sent. Read other articles saying that this is a bug of jenkins.

This email is sent automatically by the program, please do not reply! Project name: $PROJECT_NAME build number: test_$BUILD_NUMBERgit version number: ${GIT_REVISION} Note: if it is a svn submission, change to svn to build status: $BUILD_STATUS trigger reason: ${CAUSE} build log address: ${BUILD_URL} console build address: $BUILD_URL change set: ${JELLY_SCRIPT,template= "html"}

What is packaged here is the archive document of the log built this time. Convenient for business trip or inconvenient to log in to jenkins

The people on the page view the contents and results of this update.

Email notification instance sent out

Reference article:

Configure Jenkins to send mail automatically

Jenkins configure email Notification

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report