如何在 Azure DevOps 中发布不成功时发送通知电子邮件?
How to send notification e-mail when release doesn't succeed in Azure DevOps?
当发布管道中的测试失败时,我尝试从 Azure DevOps 发送通知。如果测试失败,则发布管道具有 Partialy succeeded
状态。
当此管道在 Azure 中失败时,我找不到通知选项。
问题:如何在 Azure DevOps 中发布失败时发送通知邮件?
为 "A deployment is completed" 创建新的发布通知订阅。添加一个新的过滤器子句,例如:
Deployment Status = Partially succeeded
或Deployment Status = Failed
如果您想将测试失败视为失败而不是部分成功,您可能需要在发布中取消选中测试任务 "Control Options" 下的 "Continue on error" 选项管道。
当发布管道中的测试失败时,我尝试从 Azure DevOps 发送通知。如果测试失败,则发布管道具有 Partialy succeeded
状态。
当此管道在 Azure 中失败时,我找不到通知选项。
问题:如何在 Azure DevOps 中发布失败时发送通知邮件?
为 "A deployment is completed" 创建新的发布通知订阅。添加一个新的过滤器子句,例如:
Deployment Status = Partially succeeded
或Deployment Status = Failed
如果您想将测试失败视为失败而不是部分成功,您可能需要在发布中取消选中测试任务 "Control Options" 下的 "Continue on error" 选项管道。