Variable substitution doesn't seem to work in Bamboo 2.0 beta.
For e.g, passing down svn=${bamboo.custom.svn.revision.number} to a bash script in Bamboo 2.0 beta, doesn't pass down the SVN revision number.
Reported in https://support.atlassian.com/browse/BSP-578
The problem here is actually the generation of the vcs revision keys (http://jira.atlassian.com/browse/BAM-2117
). The functionality was omitted in the first few beta releases due to the change of the plug-in interface. This was re-implemented in Beta 5, so this should now work.
Cheers,
Brydie