gpt4 book ai didi

Azure 发布管道,失败阶段后继续

转载 作者:行者123 更新时间:2023-12-04 00:59:46 25 4
gpt4 key购买 nike

我有以下 azure 发布管道:

enter image description here

问题是我有时需要离开左阶段才能失败,但同时,即使失败了,右阶段仍然应该执行,这可能吗?

我发现的唯一的事情是“即使所选阶段部分成功也会触发”,但如果前一阶段失败,它就不起作用。

enter image description here

最佳答案

I need to left left stage to fail sometimes, but at the same time, even if it failed, right stage should still be executed, is that possible?

是的,这是可能的。请按照以下步骤操作,看看它是否适合您:

首先,像您已经做的那样,为正确的阶段启用“即使所选阶段部分成功也会触发”。 enter image description here

然后,如果您知道“控制选项”中哪个任务会失败,请为任务或特定任务启用“出错时继续”。这将迫使任务继续,即使它遇到错误,这使得该阶段部分成功。 enter image description here

最后,您可以运行发布管道,看到即使左侧阶段的任务失败,右侧阶段也会被执行。 enter image description here

希望这对您有用。

关于Azure 发布管道,失败阶段后继续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59564305/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com