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

moh.hassan20's Avatar

moh.hassan20

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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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