I am working on vNext TFS 2015 builds. How can we pass a custom variable from vNext build to a shell shell script? I add a powershell script as a step in the build definition.
You can define assembly variables and then refer to them in the PowerShell task in arguments. For example, if my powershell script took the foo parameter, I could do this:
You can access the following user V variables in the power shell, as shown below,
Example:
$env:foo
In your case,
blah.ps1 -foo $env:foo