在 VSTS 中,如何将电子邮件通知任务添加到构建和发布定义中?

In VSTS, how do I add an email notification task to the build and release definitions?

我不熟悉 VSTS 持续集成和配置我的第一组构建和发布定义。

是否有我可以添加的任务,允许我通知某些团队成员事件,例如构建失败或发布已准备就绪?

对于构建失败通知,您可以在https://account.visualstudio.com/_notifications -> 新建 -> select Build 上设置 for category -> select A build fails for template -> next -> select other email for Deliver to -> 添加电子邮件地址并用分号 (;) 分隔多个电子邮件地址-> 您可以过滤特定的团队项目 -> 完成。

对于发布成功通知,目前没有设置。您可以为发布成功电子邮件通知创建扩展。更详细的可以参考sending email notification.

在通知设置的最新迭代中https://account.visualstudio.com/_notifications(其中有一个全局设置页面),如果(像我一样)您没有运行全屏:

检查添加按钮是否在屏幕的一侧!