diff options
author | dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> | 2019-11-28 16:26:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-28 16:26:48 +0300 |
commit | 989177526cba15b6424d2e4a56a15e926525532a (patch) | |
tree | 48ee01fc3857ec42cd9a750e6340c2a56e00f705 /eng/common | |
parent | eedcf1257ba920afe514dc6ffc5e4cf6a9073179 (diff) |
Update dependencies from https://github.com/dotnet/arcade build 20191127.4 (#835)
- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19577.4
Diffstat (limited to 'eng/common')
-rw-r--r-- | eng/common/build.ps1 | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/eng/common/build.ps1 b/eng/common/build.ps1 index ce6882eea..0fd4d9c7f 100644 --- a/eng/common/build.ps1 +++ b/eng/common/build.ps1 @@ -112,17 +112,18 @@ function Build { @properties } -if ($clean) { - if(Test-Path $ArtifactsDir) { - Remove-Item -Recurse -Force $ArtifactsDir - Write-Host 'Artifacts directory deleted.' - } - exit 0 -} - try { . $PSScriptRoot\tools.ps1 - If ((Test-Path variable:LastExitCode) -And ($LastExitCode -ne 0)) { + + if ($clean) { + if (Test-Path $ArtifactsDir) { + Remove-Item -Recurse -Force $ArtifactsDir + Write-Host 'Artifacts directory deleted.' + } + exit 0 + } + + if ((Test-Path variable:LastExitCode) -And ($LastExitCode -ne 0)) { Write-PipelineTelemetryError -Category 'InitializeToolset' -Message 'Eng/common/tools.ps1 returned a non-zero exit code.' ExitWithExitCode $LastExitCode } |