From 5ee787b8f86033fb9f3eeeed99362f54e0544168 Mon Sep 17 00:00:00 2001 From: "Kevin Ransom (msft)" Date: Tue, 28 Jul 2020 21:33:33 -0700 Subject: [PATCH] Add implementation -f -excludeCIBinaryLog (#9816) --- eng/Build.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eng/Build.ps1 b/eng/Build.ps1 index add0d3f7da2..616217b8d52 100644 --- a/eng/Build.ps1 +++ b/eng/Build.ps1 @@ -37,6 +37,7 @@ param ( [string]$bootstrapConfiguration = "Proto", [string]$bootstrapTfm = "net472", [switch][Alias('bl')]$binaryLog, + [switch][Alias('nobl')]$excludeCIBinaryLog, [switch]$ci, [switch]$official, [switch]$procdump, @@ -69,6 +70,7 @@ function Print-Usage() { Write-Host " -verbosity Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]" Write-Host " -deployExtensions Deploy built vsixes" Write-Host " -binaryLog Create MSBuild binary log (short: -bl)" + Write-Host " -excludeCIBinaryLog When running on CI, allow no binary log (short: -nobl)" Write-Host "" Write-Host "Actions:" Write-Host " -restore Restore packages (short: -r)" @@ -173,7 +175,12 @@ function BuildSolution() { Write-Host "$($solution):" + if ($binaryLog -and $excludeCIBinaryLog) { + Write-Host "Invalid argument -binarylog(-bl) and -excludeCIBinaryLog(-nobl) cannot be set at the same time" + ExitWithExitCode 1 + } $bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.binlog") } else { "" } + $projects = Join-Path $RepoRoot $solution $officialBuildId = if ($official) { $env:BUILD_BUILDNUMBER } else { "" } $toolsetBuildProj = InitializeToolset