Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Jenkins to send a notification email when a Slave goes offline?

How to configure Jenkins to send a notification email when a Slave goes offline? I have a Windows Server in the Cloud. In there is a Jenkins Slave running that runs a nightly build, but sometimes the Slave goes offline and I need to know when it goes offline. How can I configure to Jenkins send me a email notification in this case?

like image 494
Júlio Griebeler Avatar asked Apr 02 '13 14:04

Júlio Griebeler


People also ask

Does Jenkins have notification mechanism?

Jenkins comes with an out of box facility to add an email notification for a build project. Step 1 − Configuring an SMTP server. Goto Manage Jenkins → Configure System. Go to the E-mail notification section and enter the required SMTP server and user email-suffix details.

In which section of the Jenkins job configuration would you configure email notifications?

Go to the Jenkins home page and click the 'Manage Jenkins' menu option. Then, select the 'Configure System' option. 7. Enter the SMTP server name under 'Email Notification'.


2 Answers

The setting that Lars mentions does not seem to come with a default Jenkins installation (v1.514). I see it with the Mail watcher plugin

like image 199
Stephen Ash Avatar answered Sep 22 '22 16:09

Stephen Ash


In the slave configuration, there's an option "Notify when Node online status changes". If you check it, it will allow you to enter email addresses to be notified when the slave comes online/goes offline.

like image 23
Lars Kotthoff Avatar answered Sep 24 '22 16:09

Lars Kotthoff