diff --git a/deploy/1-fetch-and-build.ps1 b/deploy/1-fetch-and-build.ps1 index 93542f8fce..2d498fc12c 100644 --- a/deploy/1-fetch-and-build.ps1 +++ b/deploy/1-fetch-and-build.ps1 @@ -34,5 +34,5 @@ git pull origin echo "`n-----=====[ BUILDING ALL PROJECTS ]=====-----`n" cd build -.\build-all.ps1 +.\build-all.ps1 -f echo "`n-----=====[ BUILDING ALL PROJECTS COMPLETED]=====-----`n" \ No newline at end of file diff --git a/nupkg/push_packages.ps1 b/nupkg/push_packages.ps1 index dc2e729293..cb6456e1d3 100644 --- a/nupkg/push_packages.ps1 +++ b/nupkg/push_packages.ps1 @@ -8,6 +8,7 @@ $version = $commonPropsXml.Project.PropertyGroup.Version # Publish all packages $i = 0 +$errorCount = 0 $nugetUrl = "https://api.nuget.org/v3/index.json" Set-Location $packFolder @@ -24,12 +25,19 @@ foreach($project in $projects) { { dotnet nuget push $nugetPackageName --skip-duplicate -s $nugetUrl --api-key "$apiKey" Write-Host ("Deleting package from local: " + $nugetPackageName) - Remove-Item $nugetPackageName -Force + #Remove-Item $nugetPackageName -Force } else { - Write-Host ("********** ERROR PACKAGE NOT FOUND: " + $nugetPackageName) + Write-Host ("********** ERROR PACKAGE NOT FOUND: " + $nugetPackageName) -ForegroundColor red + $errorCount += 1 #Exit } + + Write-Host "--------------------------------------------------------------`r`n" } +if ($errorCount > 0) +{ + Write-Host ("******* $errorCount error(s) occured *******") -ForegroundColor red +}