Configure workflows to run jobs when an other failed

How to achive rollback startegy with cirleci 2.0?

Sample config:

  build: # build project
  publish: # put on storage
  deploy: # deploy to cloud
  rollback: # remove from storage & cloud
  e2e: # tests
workflows:
  build_and_deploy:
    jobs:
      - e2e:
        requires:
          - deploy
          - ....
        on_failed: # (1) 
          - # run rollback

What is configuration to rollback deploy on e2e test failed?

4 Likes

I have the same problem :frowning:

Hey Guy!

My workaround for that is here:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.