发送来自詹金斯的电子邮件通知 [英] Send email notification from Jenkins

查看:286
本文介绍了发送来自詹金斯的电子邮件通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在完成任何工作后发送电子邮件通知. 请让我知道我们如何传播.

I want to send email notification when any job gets done. Please let me know how can we propagate.

推荐答案

您可以将Jenkins配置为在作业完成时使用或不使用插件发送电子邮件.

You can configure Jenkins to send email when a job finishes either by using a plugin or not.

首先,您必须通过单击Manage Jenkins > Configure System并在页面底部附近找到E-mail Notification部分来配置邮件服务器设置. (可选)还可以在Jenkins Location部分中配置System Admin e-mail address.

First you have to configure your mail server settings by clicking on Manage Jenkins > Configure System and find the E-mail Notification section near the bottom of the page. Optionally also configure System Admin e-mail address in the Jenkins Location section.

然后为每个作业进行配置,并按Add post-build action键,选择E-mail Notification并根据需要进行配置.

Then for each job got to its configuration and Add post-build action, select E-mail Notification and configure as needed.

默认詹金斯电子邮件机制的问题在于它的自定义功能非常有限.

The issue with default jenkins email mechanism is that it has very limited customization.

另一种方法是使用电子邮件扩展插件,强大的电子邮件通知机制.您可以定义一些全局触发器,但也可以自定义每个作业的设置.支持发送成功,失败或任何其他构建状态的电子邮件.

The alternate approach is to use the Email-Ext plugin, a powerful email notification mechanism. You can define some global triggers but you can also customize the settings for each job. Sending emails for success, failure or any other build status is supported.

这篇关于发送来自詹金斯的电子邮件通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆