Repository navigation
Force exit when failing to create NuGet packages - #7847
Merged
Merged
Conversation
Contributor
|
Thanks @ellensi for fixing this. So I understand that now it will be an all or none situation where only if all .nupkg files are generated, will they be pushed to NuGet or if even one of them fails, then none are posted. Am I right? |
Member
|
did this PR also fix the broken nuget upload? |
Contributor
Author
|
@aparajit-pratap Yes, exactly. I have updated the PR description to reflect this info. Thanks for merging. @mjkkirschner Which broken nuget upload are you referring to? |
Contributor
|
@mjkkirschner this should fix the NuGet upload issue. I will post the Nuget package for |
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.
Purpose
When the command
nuget packfails to create nupkg files from nuspec files, the build should fail. Only one failure should be enough to stop the build, i.e., the build should only pass ifnuget packsucceeds for all the packages.Note: This build step will only be done if "Upload Nuget Packages" is checked when triggering the build.
Reasons to do this:
This PR should prevent the following successful build to happen, there were 6 nuspec files but only 5 nupkg files were created:
This log file was taken and modified from here.
Reviewers
@DynamoEngOps
FYIs
@aparajit-pratap