Introducing redeployments for Bitbucket Pipelines

This blog is part of 12 days of CI/CD, a celebration of all things CI/CD. Click here for more content and stay up to date by following us on Twitter!

The ability to roll back a failed release is critical for teams practicing continuous delivery. It reduces the mean time to recovery and minimizes the impact outages or degraded performance can have on users. Where it was previously a time consuming process to roll back a failed release in Bitbucket Pipelines, today we're proud to announce redeployment support which lets you restore the last successful deployment to a given environment in just a few clicks.

With redeployments in Bitbucket Pipelines it's simple to fix a broken environment and see what changes are being reverted. Redeployments are performed by rerunning successful deployment steps, which are indicated with a new icon in the pipeline UI.

Improved visibility into redeployments

When rolling back a release, the deployment preview screen shows the commits, code and Jira issues that are affected, giving you visibility into everything being reverted.

Rolling back deployments

It's easy to get started with redeployments. For the Redeploy button to be enabled:

  • The initial deployment step in the pipeline must be completed successfully
  • The deployment permissions must allow the step to be redeployed
  • Artifacts can’t be expired

To roll back a deployment step:

  1. Choose the deployment which you want to redeploy and click the Redeploy button. 
  2. In the Redeploy screen, review the changes and click Redeploy.

Alternatively, you can click Redeploy in the Deployments dashboard:

Get started today

Redeployments in Bitbucket Pipelines provides an easy way to roll back a failed release, reducing the time taken to fix a broken environment and providing greater visibility into what changes are being made. Try it out yourself and let us know what you think!