Configure workflows to run jobs when an other failed


#1

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?


#2

I have the same problem :frowning:


#3

Hey Guy!

My workaround for that is here:


#4

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