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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

44 views 4 5
Join discussion

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