I'm using Otter 1.5.5 and have two environments (Test and Production). Each has an environment variable defined. I'm referencing the variables in an Asset Template. However, I always get an error saying that the variable is not defined when the job runs.
Also, the $EnvironmentName variable is always null/empty. If I put the following in my template:
Log-Debug Environemnt = "$EnvironmentName";
Log-Debug GetVariableValue "$GetVariableValue(EnvironmentName)";
Log-Debug IsVariableDefined "$IsVariableDefined(EnvironmentName)";
My output is:
DEGUG: Environemnt = ""
DEGUG: GetVariableValue ""
DEGUG: IsVariableDefined "True"
It appears that the Otter thinks the $EnvirnomentName variable is defined but has no value.