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

Including variables in string values

Saul Baizman July 7, 2020

Hi there,

In the pipeline config file, bitbucket-pipelines.yml, when adding variables to the pipeline, the standard syntax looks like this:

KEY1: 'keyvalue' # for a string

KEY2: $VARIABLE # for a variable 

Is it possible to include a string and variable as the value? In programmatic-speak, can I concatenate the string and variable, like the pseudo-code below?

KEY3: 'some string: $SOME_VARIABLE'

If so, what's the proper syntax?

Thank you!

1 answer

1 accepted

0 votes
Answer accepted
Saul Baizman July 7, 2020

Nevermind! After some testing, the "pseudo-code" actually works. :-)

Boris Kravchenko August 20, 2020

What was your syntax to get it to work?

Saul Baizman August 21, 2020

Boris,

The code in my original post works.

Saul

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events