Bad Substitution in nested variables

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following appears in the atlassian-bamboo.log:

DD-MMM-YYYY hh:ii:ss
<bamboo-install>/temp/MP-HP-JOB1-2-ScriptBuildTask-2305625869057087111.sh: line 2: ${bamboo.Integer}: bad substitution

Cause

If you create a variable named as myInteger and assign 123 to it, by calling the variable myInteger (e.g: ${bamboo.myInteger}) the same will return within the value 123 as expected.

On the other hand, if you create a second variable named as mySecond and assign ${bamboo.myInteger} to it, by calling the variable mySecond (e.g.: ${bamboo.mySecond}) the same will throw an exception.

Resolution

This will happen because Bamboo variables does not provide double dereferencing.

We have a improvement request to provide this functionality in future releases:

BAM-8266 - Getting issue details... STATUS

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.