tfs - How to pass build parameters and other information to powershell script in TFS2013 build? -


i using default build template tfs 2013, how can access build parameters (for example, changeset number under build, build directory, source paths, tfs address, agent information...) powershell script?

example situation: want rewrite assembly info version informations on pre-build script last part of version number changeset number, can changeset tf.exe commands inside of script isn't thing want know build agent during build.

i have tried run get-variable in script , write build haven't find special variables inside of script.

is there have missed or default build template not pass variables powershell runtime during execution?

figured out.

variables automatically written environment variables, dir env: showed me tfs automatically create following variables:

 tf_build                       true  tf_build_binariesdirectory     c:\wp0\101\bin  tf_build_builddefinitionname   tfsbuildtest2  tf_build_builddirectory        c:\wp0\101  tf_build_buildnumber           tfsbuildtest2_20140310.3  tf_build_buildreason           manual  tf_build_builduri              vstfs:///build/build/6521  tf_build_droplocation  tf_build_sourcegetversion      c22404  tf_build_sourcesdirectory      c:\wp0\101\src  tf_build_testresultsdirectory  c:\wp0\101\tst  tfs_reg_cred                   build 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -