I have created a custom variable named "Test" in variables tab of TFS 2015 build definition.
I can access the variable $("Test") and pass it as parameter to PS1 file.
I can access the variable $Env:Test in ps1 file which is executed under the build agent context using "Run a PowerShell script" task.
But i can't access the variable $Env:Test in ps1 file which is executed under the different server context using "PowerShell on Target Machines" task.
Since i have more variables i do not want to pass all of them to the ps1 file.
Please clarify. Thanks.
I can access the variable $("Test") and pass it as parameter to PS1 file.
I can access the variable $Env:Test in ps1 file which is executed under the build agent context using "Run a PowerShell script" task.
But i can't access the variable $Env:Test in ps1 file which is executed under the different server context using "PowerShell on Target Machines" task.
Since i have more variables i do not want to pass all of them to the ps1 file.
Please clarify. Thanks.