未通过Gerrit v3.2中配置的SMTP服务器发送电子邮件

问题描述 投票:0回答:1

我已使用所需的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 = [email protected]

我也尝试调查错误日志,但没有。任何指针对我来说真的很有帮助。

email smtp gerrit gerrit-trigger gerrithub.io
1个回答
0
投票

已解决问题

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

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

设置通知

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

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

-> Save Changes

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

© www.soinside.com 2019 - 2024. All rights reserved.