Repository navigation
Support retrying partial NuGet publishes - #458
Open
savannahostrowski wants to merge 1 commit into
Open
savannahostrowski wants to merge 1 commit into
savannahostrowski wants to merge 1 commit into
Conversation
Member
|
So despite the docs saying that the If we can just enable that option, I'd just do that unconditionally. It keeps things simpler, and if we happen to re-run an existing build, it's going to successfully overwrite other places where it's been published anyway which is messy enough that we are dealing with a mess regardless. Whether or not the build fails silently or loudly doesn't matter much at that point. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
During the 3.16.0a1 release, publishing to NuGet timed out after one package had already been uploaded. Retrying the publish failed with a 409 Conflict on that package before reaching the remaining packages, which meant I had to generate a NuGet API key and publish them through the CLI with
--skip-duplicate.This PR adds a NuGet packages to skip on retry field when republishing artifacts from an existing build. It accepts semicolon-separated filenames or wildcard patterns, allowing recovery runs to exclude packages confirmed as already uploaded. The field defaults to (none), so unexpected conflicts still fail normal publishes. The recovery step removes matching packages from the temporary downloaded artifact directory before the existing NuGet task publishes the remaining .nupkg files; the original build artifacts are unchanged.
It also increases the NuGet publish timeout from its default of 300 seconds to 600 seconds and documents the recovery workflow in the README.
Feedback on the PowerShell filtering is welcome! :)