使用“旧版编辑器”,可以通过发布定义 > 触发器 > 配置环境来配置发布环境以向批准者发送电子邮件,如屏幕截图所示。 ( see also this answer )
有没有办法使用“新编辑器”来做到这一点?似乎此工作流程中缺少用于电子邮件和阻止创建用户批准的选项。
最佳答案
您可以在https://account.visualstudio.com/_notifications页面设置Approval邮件通知(通过单击配置文件 -> 通知设置)。
在通知包中,您可以为An approval for a deployment is pending添加新订阅,然后指定电子邮件地址和过滤条件。
with the integrated notification settings experience, we are moving the control on notifications from the sender to the receiver. By default, we'll always raise notification events whenever approvals are pending and based on receiver's preferences around whether he wants to be notified by email or not.
更多详情,您可以引用:
Personalize what notifications you receive for releases
New Release Editor does not expose option to Send email to approver
例子: 在通知页面,添加一个新的订阅一个部署正在等待批准,详细设置如下:
只需添加需要接收此类邮件的邮箱地址,多个邮箱地址之间用逗号(,
)隔开。
关于azure-devops - VSTS 发布批准电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45599572/