【发布时间】:2019-06-04 13:59:48
【问题描述】:
我有一个步骤会在部署成功时向 Microsoft Teams 发送消息,并且我想添加另一个步骤,如果部署中出现错误并且其中一个步骤失败时将发送消息。
我尝试将步骤的条件设置为Variable: only run when the variable expression is true,表达式为#{if Octopus.Deployment.Error != 0}#{/if}
我的印象是,如果某个步骤失败,系统变量 Octopus.Deployment.Error 将不同于 0
我使用的 Octopus Deploy 版本是 3.11.11
【问题讨论】:
标签: octopus-deploy