当前位置: 动力学知识库 > 问答 > 编程问答 >

tfs2015 - Searching for TFS variables File

问题描述:

I have 4 to 5 Builds on TFS problem is each Build has 1000+ variables, so all i want is there any xml or any other file so i just import my variables or any other possibles solution without writing variables in each build.

Answer will be highly appreciated.

网友答案:

Yes, you can use PowerShell script to do this if you are talking about the variables in vNext build.

You can create a PowerShell script with following command:

Write-Host "vso[task.setvariable variable=testvar;]testvalue"

This will create a "testvar" variable with "testvalue" filled. Then you can use it in the later build steps by entering $(testvar).

分享给朋友:
您可能感兴趣的文章:
随机阅读: