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

Allow the use of variables in the 'deployment' field of a BB Deployment

    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

      Bitbucket Pipelines supports user-provided variables: https://bitbucket.org/blog/adding-human-interaction-back-into-automated-builds

      However, despite what that page suggests, those variables currently cannot be used in the 'deployment' field. If I try to do this:

      custom:
        deploy-to-any-env:
          - variables:
            - name: ENVIRONMENT
          - step: 
              deployment: $ENVIRONMENT
              script: ...
          

      Then I get this error:

      Therefore, if I have multiple deployment environments and I want to write a custom pipeline that deploys to one of them, I have to actually write many custom pipelines, one per target deployment environment.

      Please consider allowing variables in the 'deployment' field.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dberrueta Diego Berrueta
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: