Assumptions:
I have a powershell step in a project which uses a variable called:
PSVar = “Test”
I have other variables for the project which is not used in the powershell step - called:
GeneralVar = “My project is #{OctopusPackageName}”
When running the powershell step an error occurs:
ERROR System.Exception: The variable 'GeneralVar ’ contains a reference to another variable named ‘OctopusPackageName’, which is not defined. Set the special variable OctopusPrintVariables to have Tentacle print the value of all variables to help diagnose this problem.
The problem is basically an error is generated for a variable which is not required in the powershell, but required by other steps.
How do I overcome this problem?