How to access a build's custom variable in script in TFS 2015?
问题 In Team Foundation Server 2015 in build definition I use my custom variables defined on Variables tab. Is there any way to access them in PowerShell build step like predefined variables can be accessed e.g. "$env:BUILD_DEFINITIONNAME"? Thank you 回答1: [disclaimer: I work on the new build system] I often advise folks to use the cmdline task or a cmd script to print out the variables (call set on windows, env on *nix). There's docs etc... but actually running it will show exactly what is really