Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13993

Rollback commands on fail builds

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      I would like the ability to run some custom commands on fail builds that happens on pipelines.
      Right now, our pipeline is running multiple steps including connection to third party servers/services.
      Sometimes this connection fails, however all other previous steps were executed and there is no way of rolling back the changes that were made.

      Would it be possible to add a trigger to configuration that would pass the number of the step that failed, so that a custom script would run which would roll back any necessary changes.

      Configuration could look like:

      #!yml
      
      pipelines:
        branches:
          development:
            - step:
                script:
                  - step 1
                  - step 2
                  - step 3
                  - step 4
            - rollback:
                script:
                  - step 1
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            1b4846ed0387 kamszew
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: