Azure 发布管道,在失败阶段后继续
Azure release pipeline, continue after failed stage
我有以下 Azure 发布管道:
问题是我有时候需要left left stage才能失败,但是同时即使失败了,right stage还是应该执行,可以吗?
我唯一找到的是 'Trigger even when the selected stages partially succeed',但如果前一阶段失败,它就不起作用。
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?
是的,这是可能的。请按照以下步骤操作,看看它是否适合您:
首先,像您已经做的那样为正确的阶段启用 "Trigger even when the selected stages partially succeed"。
然后,如果您知道哪个任务会在 "Control Options" 中失败,则为任务或特定任务启用 "Continue on error"。这将强制任务继续,即使它遇到错误,这使得该阶段部分成功。
最后,您可以 运行 发布管道并看到即使左侧阶段的任务失败,右侧阶段也会执行。
希望这对你有用。
我有以下 Azure 发布管道:
问题是我有时候需要left left stage才能失败,但是同时即使失败了,right stage还是应该执行,可以吗?
我唯一找到的是 'Trigger even when the selected stages partially succeed',但如果前一阶段失败,它就不起作用。
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?
是的,这是可能的。请按照以下步骤操作,看看它是否适合您:
首先,像您已经做的那样为正确的阶段启用 "Trigger even when the selected stages partially succeed"。
然后,如果您知道哪个任务会在 "Control Options" 中失败,则为任务或特定任务启用 "Continue on error"。这将强制任务继续,即使它遇到错误,这使得该阶段部分成功。
最后,您可以 运行 发布管道并看到即使左侧阶段的任务失败,右侧阶段也会执行。
希望这对你有用。