Re-run successful jobs in a workflow
complete
D
Danbadge
We typically have a workflow with multiple phases (or jobs in circle config), for example, run tests -> deploy to staging -> deploy to production. Occasionally when we have an issue on production we want to redeploy the previously deployed version (rollback), as far as I know, in CircleCI our only option is to re-run a whole workflow from beginning to end. Is it possible to re-run a previously successful job rather than the whole workflow?
CCI-I-794
Activity Feed
Sort by

Junheong Park
I need this to re deploy for rollback.
Whole jobs in workflow is too slow.
GItlab CI is support it!

Federico Farina
Looking forward to having this feature. It's almost basic in other CIs. Please add this to the GUI.

Salil Subbakrishna
complete
The "rerun workflow" API endpoint has this functionality. You can pass in a list of job ids for the jobs you want to rerun for that workflow id. The endpoint is documented here: https://circleci.com/docs/api/v2/#operation/rerunWorkflow

Aaron Stutzer
Salil Subbakrishna: any plans to add this to the GUI?

Salil Subbakrishna
Aaron Stutzer: We're looking into it at some point although we don't have a timeline right now.
Merged in a post:
Rollback a deployment to last run job
D
Dean Lovett
Include a feature on a workflow that would enable customer to quickly rollback a deployment to a workflow's last deployment.This would allow companies to deploy with complete insurance that they have an easy way to undo deployed code
CCI-I-1540
F
Frederik Nygaard Svendsen
I cant believe this is not implemented yet
C
Christian Haller
Still on top of my wishlist.
M
Markus Jevring
I'd love to have this as well. The current work-around of re-running with SSH works, but is kind of weird.
Y
Ying Zhou
It's a common use to rerun a successful job for rolling back. Looking forward to having this feature released!