Skip to content

Can't publish the .NET/NuGet packages with build information via 'jf dotnet nuget push' command #3377

Description

@yanxiuwu

Describe the bug

If we use the command:
jf dotnet nuget push *.nupkg --source "MyArtifact" --build-name="xxx" --build-number="x" to push the .NET packages to the Artifactory, we can't find the build information under Builds,
But use the command:
jf rt u "*.nupkg" $nuget-repo-name --build-name="sample_project_build_info" --build-number="1.0.1" can push the .NET packages to the Artifactory with the build information

Current behavior

We use the command:
jf dotnet nuget push *.nupkg --source "MyArtifact" --build-name="sample_project_build_info" --build-number="1.0.1" to push the .NET packages to the Artifactory, we can't find the build information under Builds,
But use the command:
jf rt u "*.nupkg" $nuget-repo-name --build-name="sample_project_build_info" --build-number="1.0.1" can push the .NET packages to the Artifactory with the build information

Reproduction steps

jf dotnet-config --server-id-resolve xxx --repo-resolve xxxx
jf dotnet restore --build-name=xxx --build-number=x
jf dotnet pack --configuration Release --output ./ --build-name=xxx --build-number=x
jf dotnet nuget push *.nupkg --source "MyArtifact" --build-name="xxx" --build-number="x"
jf rt bp xxx x

Expected behavior

Can use the command jf dotnet nuget push *.nupkg --source "MyArtifact" --build-name="sample_project_build_info" --build-number="1.0.1" to publish the packages with build information

JFrog CLI version

jf version 2.93.0

Operating system type and version

macOS Tahoe 26.3

JFrog Artifactory version

7.133.10

JFrog Xray version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions