Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>2019-11-28 16:26:48 +0300
committerGitHub <noreply@github.com>2019-11-28 16:26:48 +0300
commit989177526cba15b6424d2e4a56a15e926525532a (patch)
tree48ee01fc3857ec42cd9a750e6340c2a56e00f705 /eng/common
parenteedcf1257ba920afe514dc6ffc5e4cf6a9073179 (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.ps119
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
}