Ability to rollback to previous version, even if deployed 14+ days ago

XMLWordPrintable

    • 1

      This is a feature request for Bitbucket Pipelines.

      When building a release, some artifacts are produced. These artifacts are required in the deployment steps. At the moment these artifacts are retained for 14 days.

      That means that it is not possible to quickly rollback to a previous version if the release was built more than 14 days ago. Consider the following scenario:

      • A release was built and deployed to production 30 days ago. It has been working perfectly fine all this time.
      • Today, a new release was built and deployed to production. Unfortunately this release contains some problems and shortly after the deployment the team decides to rollback to the previous version which has been in production for the last 30 days.
      • Unfortunately it is not possible to rollback quickly because the necessary artifacts expired 14 days after the initial deployment, even if the release was still deployed in production.

      Even for teams that deploy frequently to production, there may be very good reasons the team may want to pause deployments to production for more than 14 days. For example, this may include holidays, priority changes, complex investigations of issues affecting the pre-prod environments, etc. Or the service may just be in maintenance mode.

      I understand there is a need to purge old artifacts. The suggestion would be to start the counter not when the release is deployed for the first time, but when the release is removed from the last environment. In other words: purge the artifacts 14 days after the release has not been deployed to any environment. If the release is still deployed in some environments (including production), please keep the artifacts around.

              Assignee:
              Unassigned
              Reporter:
              Diego Berrueta
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: