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

Bitbucket Pipelines: Predefine values of custom pipeline variables

Hi everyone,

Earlier we introduced support for default values in custom pipeline variables. And now we are happy to announce a new feature to make pipeline variables configuration more flexible.

We added a new property to predefine values that can be assigned to a variable. Here is an example of a pipeline configuration:

pipelines:
custom:
run-test-for-environment:
- variables:
- name: Environment
default: production
allowed-values: # optionally specify variable values
- dev
- staging
- production
- step:
script:
- echo "environment is $Environment"
Please read more details in the blog post.

2 comments

Deleted user May 25, 2023

It is now working

Peter Spencer
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!
October 24, 2024

This doesn't appear to work with a deployment step.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events