This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Loads TeamCity system build properties into the current scope | |
Unless forced, doesn't do anything if not running under TeamCity | |
#> | |
param( | |
$prefix = 'TeamCity.', | |
$file = $env:TEAMCITY_BUILD_PROPERTIES_FILE + ".xml", | |
[switch] $inTeamCity = (![String]::IsNullOrEmpty($env:TEAMCITY_VERSION)) | |
) |