Browse Source
Merge pull request #25268 from abpframework/auto-merge/rel-10-3/4498
Merge branch dev with rel-10.3
pull/25282/head
Volosoft Agent
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
0 deletions
-
nupkg/push-nightly-packages-myget.ps1
-
nupkg/push_packages.ps1
|
|
|
@ -16,6 +16,8 @@ if (!$apikey) |
|
|
|
$maxRetryCount = 3 |
|
|
|
$retryDelaysInSeconds = @(30, 60, 120) |
|
|
|
$failedPackages = @() |
|
|
|
$failedPackagesFilePath = Join-Path (Get-Location) "failed-packages.txt" |
|
|
|
if (Test-Path $failedPackagesFilePath) { Remove-Item $failedPackagesFilePath -Force } |
|
|
|
|
|
|
|
$packages = Get-ChildItem -Filter *.nupkg | Sort-Object Name |
|
|
|
|
|
|
|
@ -61,5 +63,6 @@ if ($failedPackages.Count -gt 0) |
|
|
|
{ |
|
|
|
$errorCount = $failedPackages.Count |
|
|
|
Write-Host ("******* $errorCount error(s) occured *******") -ForegroundColor red |
|
|
|
$failedPackages | Set-Content -Path $failedPackagesFilePath |
|
|
|
exit 1 |
|
|
|
} |
|
|
|
@ -14,7 +14,9 @@ $totalProjectsCount = $projects.length |
|
|
|
$nugetUrl = "https://api.nuget.org/v3/index.json" |
|
|
|
$maxQuotaRetryCount = 3 |
|
|
|
$quotaRetryDelaysInSeconds = @(30, 60, 120) |
|
|
|
$failedPackagesFilePath = Join-Path $packFolder "failed-packages.txt" |
|
|
|
Set-Location $packFolder |
|
|
|
if (Test-Path $failedPackagesFilePath) { Remove-Item $failedPackagesFilePath -Force } |
|
|
|
|
|
|
|
foreach($project in $projects) { |
|
|
|
$i += 1 |
|
|
|
@ -76,5 +78,6 @@ foreach($project in $projects) { |
|
|
|
if ($errorCount > 0) |
|
|
|
{ |
|
|
|
Write-Host ("******* $errorCount error(s) occured *******") -ForegroundColor red |
|
|
|
$failedPackages | Set-Content -Path $failedPackagesFilePath |
|
|
|
exit 1 |
|
|
|
} |
|
|
|
|