Skip to content

Commit 2ea9252

Browse files
authored
[Ignore] Allow VSTS env var override (#2264)
1 parent d2b5e7f commit 2ea9252

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/releaseBuild/setVstsVariables.ps1

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ $vstsVariables = @{
55
# Use VSTS's API to set an env vars
66
foreach ($var in $vstsVariables.Keys)
77
{
8+
# Allow environment to override
9+
if (Get-Item "env:$var" -ErrorAction Ignore)
10+
{
11+
continue
12+
}
13+
814
$val = $vstsVariables[$var]
915
Write-Host "Setting var '$var' to value '$val'"
1016
Write-Host "##vso[task.setvariable variable=$var]$val"

0 commit comments

Comments
 (0)