简体   繁体   English

如何配置 Jenkins 在 Slave 离线时发送通知电子邮件?

[英]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?如何配置 Jenkins 在 Slave 离线时发送通知电子邮件? I have a Windows Server in the Cloud.我在云端有一台 Windows Server。 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.有一个 Jenkins Slave 正在运行,它运行每晚的构建,但有时 Slave 会脱机,我需要知道它何时会脱机。 How can I configure to Jenkins send me a email notification in this case?在这种情况下,如何配置 Jenkins 向我发送电子邮件通知?

The setting that Lars mentions does not seem to come with a default Jenkins installation (v1.514). Lars 提到的设置似乎没有与默认的 Jenkins 安装 (v1.514) 一起提供。 I see it with theMail watcher plugin我用邮件观察器插件看到它

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.如果您选中它,它将允许您输入电子邮件地址,以便在从站上线/下线时收到通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM