How to avoid build failure when nuget fail to publish package for key expire

moh.hassan20's Avatar


18 Mar, 2020 04:08 PM

When nuget fail to publish a package, build is failed and fire an error message:

Error publishing package. NuGet server returned 403: The specified API key is invalid, has expired, or does not have permission to access the specified package.

I want to avoid build fail due to the failure of publishing package, what can i add to appveyor.yml
It's enough to get a warning/info message and latter I can re-publish when key is updated.

  1. Support Staff 1 Posted by Feodor Fitsner on 18 Mar, 2020 08:05 PM

    Feodor Fitsner's Avatar

    Well, you can configure a new "NuGet" deployment environment and then publish asynchronously to that environment...though you wan't get an warning/error in a build log.

    Another way would be publishing with nuget push ... command line instead built-in deployment provider.

  2. Feodor Fitsner closed this discussion on 18 May, 2020 09:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac