Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

Access variable in "PowerShell on Target Machines" task

$
0
0
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.

Viewing all articles
Browse latest Browse all 6687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>