The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new 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.

TAGS
AUG Leaders

Atlassian Community Events