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

Allow custom variables for deployment environment

    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

      Issue Summary

      Deployment variables only accept values explicitly pre-defined in the deployment section according to our documentation. Users would like to be able to setup environments automatically using environment variables or just select an already created environment without editing the YAML file.

      Steps to Reproduce

      1. Setup an environment variable called TARGET_ENV
      2. Edit the YAML file with below example code
        custom:
         variables:
         name: $TARGET_ENV
         step:
         deployment: $TARGET_ENV
         caches:
         node
         script:
         echo "Deploying to " $TARGET_ENV
         /bin/bash scripts/deploy.sh $TARGET_ENV
        

      Expected Results

      Create a deployment environment and its variables if it still does not exist by defining it on the yaml file, either through an environment variable or giving it providing the deployment tag the name of a deployment environment that currently does not exist.

      Workaround

      Use the hard-coded deployment environment name as the environment name in the YAML file.

      Attachments

        Issue Links

          Activity

            People

              57465700c4e1 Edmund Munday
              fstefanelli@atlassian.com Felipe S. (Inactive)
              Votes:
              359 Vote for this issue
              Watchers:
              162 Start watching this issue

              Dates

                Created:
                Updated: