diff --git a/ci/scripts/Publish-NuGetPackages.ps1 b/ci/scripts/Publish-NuGetPackages.ps1 index cb7a21faa3..d635349946 100644 --- a/ci/scripts/Publish-NuGetPackages.ps1 +++ b/ci/scripts/Publish-NuGetPackages.ps1 @@ -114,6 +114,9 @@ function Set-AllPackageSignatures { else { throw "$signatureType is not a valid signature type" } + if ($LastExitCode -ne 0) { + throw "Signing failed" + } } } finally {