Hello, I'm writing a script to utilize the bamboo variables. I have a echo line looks like: echo ${bamboo.dependency.parent.!parentsIndex!}
The parentsIndex variable is a number here based on my personal requirement and it's ensured that this number won't exceed the max index of the parents that this build has. So ideally, I want this line to output the name of the parent which I request for. However, it outputs ${bamboo.dependency.parent.1}, instead of dynamically retrieving the bamboo variable name. How should I change the way to set and echo this line?