Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,248
Community Members
 
Community Events
168
Community Groups

Deployment version is not set by custom variable

Edited

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

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.

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

Atlassian Community Events