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

Branch-Specific Environment Variables

XMLWordPrintable

    • 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.

      We deploy to different Elastic Beanstalk environments depending on the branch. For example, we have a dev branch that gets deployed to a dev environment.

      The global environment variables are very helpful but it would be extremely helpful to specify environment variables that apply ONLY for certain branches. The same logic used to match the pipelines branch could apply. So for example I could specify that APPLICATION_ENVIRONMENT should be "my_dev_environment" only if the branch starts with "dev".

      BTW, we are working around this by overriding the ENV variables in the build script but it would be cleaner to maintain all ENV variables in the pipelines interface.

      Thanks!

              Unassigned Unassigned
              7c060a9b8ed2 Chris Brantley
              Votes:
              4 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: