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

Deployment version is not set by custom variable

dembowski91
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!
April 7, 2020

Hello everyone. I'am trying to set deployment version from my custom variable. I see on the log that, the bamboo.deploy.version variable has been set as I need (using my custom value), but label is presentig different value.

My release versiong mask looks like:
release-11-${bamboo.variable.version}

What I am doing wrong?

 

scrn.png

1 answer

1 accepted

1 vote
Answer accepted
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 8, 2020

Where do you set the variable? In order for it to be visible during version creation it needs to be set as one of the following:

- global variable

- plan variable of the plan deployment project is associated with

- result variable of the  build result the version is created from

 

Setting it as deployment environment variable won't work, because the version is created first, then it is deployed to one or more environments.

dembowski91
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!
April 8, 2020

That is the reason of problem - I was trying to inject variable value in deploy plan. I moved it to build plan and it works like charm - thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events