jfrog-cli
jfrog-cli copied to clipboard
Package manager integration: Is `dotnet nuget push` command supported?
When pushing NuGet packages via the following command it seems that the published NuGet artifacts are not included in the build info. The artifacts section of the specific module is missing.
jf dotnet nuget push MyPackage.1.2.3.nupkg --source https://artifactory.mycompany.com/artifactory/api/nuget/v3/my-feed --api-key [REDACTED] --skip-duplicate --build-name=my-build-name --build-number=1.2.3 --module=MyModule --project=my-project
Workaround is to push via Artifactory file upload command:
jf rt upload --build-name=my-build-name --build-number=1.2.3 --module=MyModule MyPackage.1.2.3.nupkg my-feed --server-id=my-server-id --project=my-project
This works but advanced NuGet push options (https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-push#options) such as --skip-duplicates cannot be used.
I'm using JFrog CLI v2.73.3