Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个管道詹金斯我也使用了一个有几个阶段的詹金斯文件,如果在一个阶段中管道在一个阶段被执行之后失败,我该怎么办?例如停止和删除几个 docker 容器。
谢谢
try/catch 得到错误,最后阻止做“最后”阶段?
try { stage name: "something": } catch (err) { // handle errors here ? } finally { stage name: "cleanup" }