How to correctly pass variables & source version to API 2.0 VNext Build in TFS 2015
问题 I'm having difficulty finding how the correct way to pass defined variables and build definition arguments to the new API 2.0 build engine with TFS 2015. I'm using TFS 2015 Update 3 on-premise . I've triggered a POST with powershell that looks like this: $Build_Definition_ID = 1234 $TFSInstanceURL = 'http://tfsservername:port/tfs' $ProjectCollection = 'CollectionName' $TeamProject = 'ProjectName' $Changeset = "12345" $UserName = "$env:USERDOMAIN\$env:USERNAME" $UserNamePartial = $env:USERNAME