Recursive variables still not possible?

Hi there,

we have a deployment task which deploys artifacts via maven and -Dversion=R${bamboo.repository.revision.number}. In all branches of that plan I would now like to overwrite that variable with the branch version, e.g. -Dversion=2.0.4

My first guess was, to put "R${bamboo.repository.revision.number}" into a plan variable called "version" and then overwrite it in the branches but it seems like the inner content of ${bamboo.version} isn't evaluated.

How could I solve that problem? Is it planned that variables can be used recursive/iterative? Maybe at least like in ant with ${version.@{subvariable}} ?

1 answer

1 accepted

There is an open improvement request to implement recusive expansion of variables. Please watch and vote for it :)

There should be another issue from me, 2 years ago about the same topic :(

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

127 views 6 8
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you