繁体   English   中英

在 Gerrit v3.2 中配置的 SMTP 服务器无法发送电子邮件

[英]Emails Not Getting sent with SMTP Server Configured in Gerrit v3.2

我已经使用所需的 SMTP 详细信息编辑了 gerrits 配置文件:

 [sendemail]
 enable = true
 smtpServer = smtp.server.com
 smtpServerPort = 25 

但问题是,细节不知何故不适用于gerrit,但相同的值确实适用于Jenkins。

Gerrit 那里真的没有有用的文档。 我什至尝试使用以下命令配置项目配置文件的服务器端设置:

[access]
    inheritFrom = All-Projects
[submit]
    action = inherit
[access "refs/*"]
    owner = blah blah blah
[notify "Administrators"]
    email = blah@blahblahblah.com

我也尝试查看错误日志,但没有。 任何指示都会对我很有帮助。

问题解决了

gerrit.conf 端的配置只是它的服务器端。

对于客户端,go 到Settings -> Notifications.

设置通知

-> Project Name: <whichever project you have access to>

-> Branch: master或您选择的任何其他分支。

-> Save Changes

配置通知后,订阅的事件将通过 Gerrit 以电子邮件的形式发送给您。

暂无
暂无

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

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