Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipelines - Dynamic Deployment Name

Chris Romp
Contributor
October 23, 2019

Now that we have multiple environments under each deployment type (Test, Staging, Production), is it possible to use variables for deployments in pipelines?  We're trying to dynamically assign feature branches to environments.

feature/*:
  - step:
      nameDeploy to Feature Environment
deployment: $variable

Or even something like this:

pipelines:
  custom:
    feature-deployment
      - variables:
          - name: ENV_NAME
- deployment: $ENV_NAME

I've tried calling a custom pipelines with variables from the rest API, but even when I do so the custom pipeline doesn't like the `$variable` for `deployment` at all.

3 answers

1 accepted

4 votes
Answer accepted
Chris Romp
Contributor
December 16, 2019

Added as a feature suggestion here: https://jira.atlassian.com/browse/BCLOUD-19611

If you want to see this implemented, please go vote on the feature (click vote, not just watch).

3 votes
milos.jajac
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 12, 2019

I am looking for this as well. It would be immensely useful to allow for dynamic deployment names (ex. use $BITBUCKET_BRANCH for the name, and create a deployment env for each important branch).

However, it is not yet supported. Here is a similar thread.

Chris Romp
Contributor
December 16, 2019
Like milos.jajac likes this
0 votes
Paul Selibas May 15, 2024

Removed

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events