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!