Missed Team ’24? Catch up on announcements here.

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

1 comment

Deleted user May 25, 2023

It is now working

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events