Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TEAM BUILD PowerShell: Output all documented environment variables
# Team Foundation Build environment variables
# http://msdn.microsoft.com/en-us/library/hh850448.aspx
Write-Host "TF_BUILD : $Env:TF_BUILD "
Write-Host "TF_BUILD_BINARIESDIRECTORY : $Env:TF_BUILD_BINARIESDIRECTORY "
Write-Host "TF_BUILD_BUILDDEFINITIONNAME : $Env:TF_BUILD_BUILDDEFINITIONNAME "
Write-Host "TF_BUILD_BUILDDIRECTORY : $Env:TF_BUILD_BUILDDIRECTORY "
Write-Host "TF_BUILD_BUILDNUMBER : $Env:TF_BUILD_BUILDNUMBER "
Write-Host "TF_BUILD_BUILDREASON : $Env:TF_BUILD_BUILDREASON "
Write-Host "TF_BUILD_BUILDURI : $Env:TF_BUILD_BUILDURI "
Write-Host "TF_BUILD_COLLECTIONURI : $Env:TF_BUILD_COLLECTIONURI "
Write-Host "TF_BUILD_DROPLOCATION : $Env:TF_BUILD_DROPLOCATION "
Write-Host "TF_BUILD_SOURCEGETVERSION : $Env:TF_BUILD_SOURCEGETVERSION "
Write-Host "TF_BUILD_SOURCESDIRECTORY : $Env:TF_BUILD_SOURCESDIRECTORY "
Write-Host "TF_BUILD_TESTRESULTSDIRECTORY : $Env:TF_BUILD_TESTRESULTSDIRECTORY "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.