I've got a Maven3 builder, and I'm passing in environment variables based on Bamboo global variables.
For example, I pass in this value:
AWS_ACCESS_KEY=${bamboo.AWS_ACCESS_KEY_PASSWORD}
The value is then visible in the logs, unmasked. E.g, the logs contain a line like this:
/opt/maven-3.0/bin/mvn -Djava.io.tmpdir=/tmp/MYPROJECT-JOB1 clean verify enforcer:enforce --batch-mode ... in: /mnt/bamboo-ebs/bamboo-agent/build-dir/MYPROJECT-JOB1 ... using extra environment variables: MAVEN2_HOME=/opt/maven-3.0 JAVA_HOME=/opt/jdk-7 useMavenReturnCode=false AWS_ACCESS_KEY=AKIA<rest deleted by me;should be masked> bamboo_AWS_SECRET_KEY_PASSWORD=******** M2_HOME=/opt/maven-3.0 bamboo_AWS_ACCESS_KEY_PASSWORD=******** bamboo_recipe_name=iespersist_service AWS_SECRET_KEY=MTFt<rest deleted by me;should be masked> PATH=<truncated>
The "bamboo_" prefixed variables are masked, but I don't want to use the bamboo prefix in my build scripts and test code (Yeah, I'm fussy that way). The variables I've manually added are not masked.