如果工作流中另一个“特殊”作业失败,如何使作业在Circleci工作流中运行

时间:2020-02-17 12:39:33

标签: deployment continuous-deployment circleci circleci-2.0 circleci-workflows


workflows:
  version: 2
  build_accept_deploy:
    jobs:
      - build
      - acceptance_test_1:
          requires:
            - build
      - acceptance_test_2:
          requires:
            - build
      - acceptance_test_3:
          requires:
            - build
      - acceptance_test_4:
          requires:
            - acceptance_test_1
            - acceptance_test_2
          when: on_fail


这种情况是,如果前面三个作业都运行正常,我就不想运行acceptance_test_4。但是,如果只有acceptance_test_4失败并且acceptance_test_3acceptance_test_1通过,我想运行acceptance_test_2。 我的解决方案对吗?

0 个答案:

没有答案