Forums

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

Custom Pipeline Variables are now supported in .yaml Templating

Variables can be templated into your bitbucket-pipelines.yaml file via a simple, standardized templating syntax. Currently, this supports system variables and user variables (such as repository and workspace variables). For more details, see the Variables and secrets | Bitbucket Cloud | Atlassian Support. Custom pipeline variables are not supported.

We’ve now added custom pipeline variables to the existing set of supported variables, giving you more flexibility to specify values on a per‑run, per‑pipeline basis. You can template these variables in your YAML file at configuration time.

How it works:

Templating variables in your .yaml file uses a simple, standardized syntax ${{MY_VARIABLE_KEY}}.

  1. Wrap the variable key in your .yaml with ${{ }} tags; the system handles the rest.
  2. In the Run pipeline dialog, you can provide values for these variables.
  3. The system then templates the values of these variables.

Read more information about this here: Variables and secrets help document.

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events