当上一步失败时,是否会运行一步的on_fail指令?
我使用以下步骤:
- name: fail intentionally
service: busybox
command: false
- name: check if onfail is called
service: busybox
command: true
on_fail:
- command: echo reporting failure调用jet steps会产生以下输出:
(step: fail intentionally)
(image: busybox) (service: busybox) Image exists, using cached image
(step: fail intentionally) error ✗
(step: fail intentionally) container exited with a 1 code我的on_fail没有运行。
这是jet实用程序的问题吗?还是在Codeship中会有相同的行为?
发布于 2018-09-20 03:58:06
您已经为第二个测试步骤(不会失败的步骤)定义了on_fail偶发事件。如果为第一步(失败并停止构建)设置了on_fail,您就会注意到echoed语句。
此行为将与在CodeShip专业版中运行的构建一致。
https://stackoverflow.com/questions/52402777
复制相似问题