简体   繁体   English

如何在jekins上发送有关服务器上任何构建失败的电子邮件

[英]How do I send a email on jekins for any build failure on the server

Our jenkins server has a lot of jobs, is there anyway to configure so that an email is sent when any build breaks? 我们的jenkins服务器有很多工作,是否需要进行配置,以便在任何构建中断时发送电子邮件? I know how to do it for each job individually, but I'd like to set up a global configuration. 我知道如何分别为每个工作执行此操作,但是我想设置一个全局配置。

We use the Email Extension Plugin. 我们使用电子邮件扩展插件。 电子邮件通知插件

and then configure our SMTP Server in the General Configuration. 然后在常规配置中配置我们的SMTP服务器。 常规配置中的SMTP服务器 Once this is all setup, then add a Post Build event in your Jenkins job to send an email on failure. 一旦完成所有设置,然后在Jenkins作业中添加一个Post Build事件,以发送有关失败的电子邮件。 建立后活动

We ended up using this https://wiki.jenkins-ci.org/display/JENKINS/Configuration+Slicing+Plugin 我们最终使用了这个https://wiki.jenkins-ci.org/display/JENKINS/Configuration+Slicing+Plugin

There is a way to configure emails for all jobs at once 有一种方法可以一次为所有作业配置电子邮件

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

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