I have a task executing a script which takes the value of ${bamboo.repository.branch.name} as argument.
Sometimes we want to override this value using a custom one. So I thinked to a variable named 'custom_branch' to be used as argument, but I don't know how to use ${bamboo.repository.branch.name} as a default when no value for 'custom_branch' has been provided.
I tried using exactly ${bamboo.repository.branch.name} as the value of 'custom_branch', but it was used literally.
Is there a way to use this kind of inherited values for variables?