diff options
author | dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> | 2020-10-20 15:33:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 15:33:13 +0300 |
commit | 8c41e53bbc6223fbb320885e8944794f283b6135 (patch) | |
tree | 15a5b165b906ba6316a90befe737834bf2e6b013 /eng/common/post-build | |
parent | e2ce67a42fac9915e764b52fcd15bbbb22576711 (diff) |
[master] Update dependencies from dotnet/arcade (#1572)
[master] Update dependencies from dotnet/arcade
- Reset AnalysisLevel for WarningLevel to work
Diffstat (limited to 'eng/common/post-build')
-rw-r--r-- | eng/common/post-build/sourcelink-validation.ps1 | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/eng/common/post-build/sourcelink-validation.ps1 b/eng/common/post-build/sourcelink-validation.ps1 index c7e7ae67d..1728b742b 100644 --- a/eng/common/post-build/sourcelink-validation.ps1 +++ b/eng/common/post-build/sourcelink-validation.ps1 @@ -161,9 +161,12 @@ $ValidatePackage = { function CheckJobResult( $result, $packagePath, - [ref]$ValidationFailures) { - if ($jobResult.result -ne '0') { - Write-PipelineTelemetryError -Category 'SourceLink' -Message "$packagePath has broken SourceLink links." + [ref]$ValidationFailures, + [switch]$logErrors) { + if ($result -ne '0') { + if ($logError) { + Write-PipelineTelemetryError -Category 'SourceLink' -Message "$packagePath has broken SourceLink links." + } $ValidationFailures.Value++ } } @@ -228,16 +231,14 @@ function ValidateSourceLinkLinks { foreach ($Job in @(Get-Job -State 'Completed')) { $jobResult = Wait-Job -Id $Job.Id | Receive-Job - CheckJobResult $jobResult.result $jobResult.packagePath ([ref]$ValidationFailures) + CheckJobResult $jobResult.result $jobResult.packagePath ([ref]$ValidationFailures) -LogErrors Remove-Job -Id $Job.Id } } foreach ($Job in @(Get-Job)) { $jobResult = Wait-Job -Id $Job.Id | Receive-Job - if ($jobResult -ne '0') { - $ValidationFailures++ - } + CheckJobResult $jobResult.result $jobResult.packagePath ([ref]$ValidationFailures) Remove-Job -Id $Job.Id } if ($ValidationFailures -gt 0) { |