通过Jenkins发送邮件成功构建? [英] Send mail through Jenkins on Successful build?

查看:644
本文介绍了通过Jenkins发送邮件成功构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须配置SMTP服务器,以便在Jenkins配置路径我可以给SMTP服务器。有人告诉如何配置SMTP服务器在Ubuntu和如何映射该服务器在Jenkins电子邮件扩展插件。

解决方案

我发现解决方案为: -



1)sudo apt-get install mailutils(在Jenkins机器上)



2)在Jenkins中安装Email-ext插件。

 code>在Postfix配置下选择Internet站点
点击ok
输入您的系统邮件名称(默认您可以选择)
点击ok



3)登录Jenkins服务器



4)选择管理Jenkins下的配置



5)转到电子邮件通知选项。



6)在SMTP服务器选项中输入localhost



7)在默认用户电子邮件后缀中输入您的电子邮件后缀。



8)发送测试电子邮件选项。



9)输入您的电子邮件ID。



10)



11)检查您的电子邮件确认

12)现在转到项目并选择E- Jenkins配置项目下的邮件通知



13)输入收件人的电子邮件ID(由多个收件人的空格分隔)



14)点击保存。


I have to configure SMTP server so that in Jenkins configuration path I can give the SMTP server.Can somebody tell how to configure SMTP server in Ubuntu and also how to map that server in Jenkins Email-Ext plugin.

解决方案

I found the solution as :-

1) sudo apt-get install mailutils (on Jenkins machine)

2) Install Email-ext plugin in Jenkins.

 Select Internet Site under Postfix configuration
 click on ok
 enter your system mail name(Default you can select)
 click on ok

3) Login in Jenkins server

4) Select Configuration under manage Jenkins

5) Go to E-mail Notification option.

6) In SMTP server option enter "localhost" without quotes.

7) In Default user e-mail suffix enter your email suffix.

8) check Test configuration by sending test e-mail option.

9) Enter your email-id.

10) click on test configuration.

11) check your email for confirmation

12) Now go to the project and select E-mail Notification under the Jenkins configuration project

13) enter E-mail id of the Recipients (separated by space for multiple recipients)

14) click on save.

这篇关于通过Jenkins发送邮件成功构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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