I am trying to access Bamboo's variables as environment variables in my build script (PowerShell).
For example, this works fine in TeamCity
$buildNumber = "$env:BUILD_NUMBER"
And I expected this to work in Bamboo
$buildNumber = "$env:bamboo_buildNumber"
Typical. It's a bug.
So I have to resort (meanwhile) to add the environment variable in the script task.