Start Building for Free
CircleCI.comAcademyBlogCommunitySupport

Rollback a project by workflow rerun

1 month ago1 min read
Cloud
On This Page

This guides covers how to rollback a project by workflow rerun.

Prerequisites

Before performing a rollback by workflow rerun, ensure you have configured deploy markers in your CircleCI workflows. Deploy markers track when deployments occur and are essential for rollback functionality. Follow the Configure Deploy Markers guide to set this up. Autodetected deploy markers are not supported for use with rollbacks.

Performing a rollback by workflow rerun

Workflow rerun rollbacks do not need any additional configuration beyond setting up deploy markers. To perform a rollback using workflow rerun:

  1. In the CircleCI web app, select your org from the org cards on your user homepage.

  2. Select Projects from the sidebar and locate your project from the list. You can use the search to help.

  3. Select the Overview link for your project.

  4. Select Rollback.

  5. Select Rollback by workflow re-run.

Rollback button on project overview page
Figure 1. Rollback options on project overview page

This will open the workflow re-run modal with the following options:

  • Choose a version. Select the version you want to roll back to from the list of available versions.

  • Confirm rollback. Select Next, confirm rollback to proceed.

The workflow that originally deployed the selected version will be re-run, effectively performing a rollback to that version.

Important considerations

  • Advantage: No setup required. This rollback method works immediately after configuring deploy markers.

  • Disadvantage: The entire workflow will be re-run, which may not always be desirable depending on your workflow complexity and duration

  • For complete control over the rollback process and to avoid re-running entire workflows, consider using the custom rollback pipeline approach described in the Setting Up Rollbacks in CircleCI section.


Suggest an edit to this page

Make a contribution
Learn how to contribute