Integrate Jenkins notifier for chrome to Jenkins Ci

Source: Internet
Author: User
Tags jenkins ci

Jenkins is now the most popular CI tool, and our team also uses it for continuous integration. Recently, a pop-up window needs to be added to remind relevant personnel of the job status. Therefore, Jenkins notifier for chrome is selected as the Chrome browser plug-in, and chrome is also used in our team. The installation method is as follows:
1. On the CI server, install Jenkins websocket plugin first, configure the websocket port, open manege Jenkins> Configure system> websocket notifier, and enter the port number:

2. Select websocket notifier for a job that supports notifier:

3. Install chrome plug-in Jenkins notifier:

4. Configure the Jenkins notifier plug-in:

For Jenkins URL, enter http: // 172.16.20.8: 8080.

Websocket: WS: // 172.16.20.8: 8081/Jenkins

Job name is the name of the job to be notified, that is, the name of the name column in http: // 172.16.20.8: 8080,

Click Save.

After the job is completed, a notification window pops up:

 

The problem is that this chrome plug-in can only support status notifications for one job. If we want to monitor multiple jobs at the same time, we need to do some chrome extension work. The method is as follows:

1. chrome extensions can be added to the Jenkins notifier plug-in again and configured to monitor the status of different jobs respectively. First, find the installation path that has extension installed. The default installation path is here:

C: \ Users \ [username] \ appdata \ Local \ google \ chrome \ User Data \ Default \ extensions \ mnjbjjllbclkpnebaddhkoonjelmiekm \ 0.3 _ 0

(This key "mnjbjjllbclkpnebaddhkoonjelmiekm" cannot be the same as me)

 

2. Copy all the files in this directory to a directory. we name it jenkinsnotifier.

3. Open chrome: // Chrome/extensions/in chrome and select the developer mode:

4. Click "package extension" and select the jenkinsnotifier directory:

 

5. Click "package extension ":

Package completed:

6. Drag the generated E: \ jenkinsnotifier. CRX to chrome for installation:

 

7. Repeat the preceding steps multiple times to add multiple jenkinsnotifiers and configure them to monitor the statuses of different jobs:

 

Done!

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.