我有以下天蓝色发布管道:
问题是,有时我需要离开左阶段才能失败,但同时,即使失败,右阶段仍然应该执行,这可能吗?
我发现的唯一的事情是“即使所选阶段部分成功也会触发”,但如果前一阶段失败,它就不起作用。
有时我需要离开左阶段才能失败,但同时,即使失败了,右阶段仍然应该执行,这可能吗?
是的,这是可能的。请按照以下步骤操作,看看它是否适合您:
First, enable "Trigger even when the selected stages partially succeed" for the right stage as you already did.
Then, enable "Continue on error" for the tasks or the specific task if you know which one would fail in "Control Options". This will force the task to continue even it met errors which makes that stage a partially succeeded one.
At last, you can run the release pipeline and see the right stage will be executed even the tasks in left stage failed.
希望这对你有用。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)