Azure DevOps:部署组作业状态是如何决定的?

Azure DevOps: How's the deployment group job status decided?

我有一个部署组作业,在下图中设置为 33%。作业状态如何确定为 "failed" 或部分成功”?该设置的描述仅指定 "It is also used to determine the success and failure conditions during deployment",这并没有真正说明。

第一次尝试,状态为失败,即使只有 4 台机器没有成功

几次尝试后,状态为 "partially succeeded",尽管 23 次失败了

我想你应该知道这与部署失败的次数没有任何关系。

事实上,这只与一个选项相关:出现错误继续

当您在任务中启用此选项时,即使一步失败,它仍会继续部署。最后会显示部分成功

相反,如果您没有勾选这个出错时继续选项,即使它只有一个失败的步骤,状态仍然会显示失败.

要验证这一点,您可以检查存在于 Control Options 中的任务配置。

此外,您可以查看此线程:VSTS Release - Phase with partially succeeded

Deployment group phase will be “partially succeeded” if deployment is attempted to all the targets, event the deployment is failed in any of the target.

我在下面 Merlin 的回答中找到了 link 的答案:"Deployment group phase will be “partially succeeded” if deployment is attempted to all the targets, event the deployment is failed in any of the target."

无法在官方文档的任何地方找到这条信息。