Run a job when a previous job fails
closed
M
Mike Lay
Allow for running a job when a previous job fails. This job would specifically run only when the job fails. It would not run "always" or when successful.
A potential use-case may be the automatic rollback of a deploy.
An example workflow might be:
- Deploy new code
- Run some tests
- If the tests fail, run the rollback job
Minjun Seong
marked this post as
closed
Hi everyone, I'm a product manager at CircleCI. We will mark this closed as "flexible requires" handles the problems mentioned on this post.
If there are any limitations with our current solution, we would love to learn more.
Learn more about flexible requires: https://circleci.com/changelog/more-flexible-job-required-capabilities/
J
Joe
this feature is very much required
C
Cos
For the record, this is NOT a "cloud feature request". There is nothing cloud-specific about this. This should be possible on both cloud and server.