diff options
author | dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> | 2020-06-15 15:31:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 15:31:07 +0300 |
commit | fd182b0aed1b0377a9696a6d190a40a14b4f16eb (patch) | |
tree | ac349e668aedfb03ec158fd39c59e27c6076dc23 /eng/common/post-build | |
parent | 326ec6fafa0b60f707a9a6d06f10a9a5501fd5c7 (diff) |
Update dependencies from https://github.com/dotnet/arcade build 20200609.1 (#1272)
Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk
From Version 5.0.0-beta.20280.1 -> To Version 5.0.0-beta.20309.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Diffstat (limited to 'eng/common/post-build')
-rw-r--r-- | eng/common/post-build/sourcelink-validation.ps1 | 9 | ||||
-rw-r--r-- | eng/common/post-build/symbols-validation.ps1 | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/eng/common/post-build/sourcelink-validation.ps1 b/eng/common/post-build/sourcelink-validation.ps1 index cc9d059d0..cdd1bba4f 100644 --- a/eng/common/post-build/sourcelink-validation.ps1 +++ b/eng/common/post-build/sourcelink-validation.ps1 @@ -196,6 +196,8 @@ function ValidateSourceLinkLinks { Remove-Item $ExtractPath -Force -Recurse -ErrorAction SilentlyContinue } + $ValidationFailures = 0 + # Process each NuGet package in parallel Get-ChildItem "$InputPath\*.symbols.nupkg" | ForEach-Object { @@ -209,17 +211,20 @@ function ValidateSourceLinkLinks { } foreach ($Job in @(Get-Job -State 'Completed')) { - Receive-Job -Id $Job.Id + $jobResult = Receive-Job -Id $Job.Id + if ($jobResult -ne '0') { + $ValidationFailures++ + } Remove-Job -Id $Job.Id } } - $ValidationFailures = 0 foreach ($Job in @(Get-Job)) { $jobResult = Wait-Job -Id $Job.Id | Receive-Job if ($jobResult -ne '0') { $ValidationFailures++ } + Remove-Job -Id $Job.Id } if ($ValidationFailures -gt 0) { Write-PipelineTelemetryError -Category 'SourceLink' -Message "$ValidationFailures package(s) failed validation." diff --git a/eng/common/post-build/symbols-validation.ps1 b/eng/common/post-build/symbols-validation.ps1 index e108bf6c5..bf7c15e79 100644 --- a/eng/common/post-build/symbols-validation.ps1 +++ b/eng/common/post-build/symbols-validation.ps1 @@ -189,7 +189,11 @@ function CheckSymbolsAvailable { } foreach ($Job in @(Get-Job -State 'Completed')) { - Receive-Job -Id $Job.Id + $jobResult = Wait-Job -Id $Job.Id | Receive-Job + if ($jobResult -ne '0') { + $TotalFailures++ + } + Remove-Job -Id $Job.Id } Write-Host } |