Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66009

Typo in --symbol-api-key param in dotnet nuget push making it fail

XMLWordPrintable

      Just a typo. Anonymized log:

      [ProjectName] $ dotnet.exe nuget push --api-key ******** --source https://server/nuget/feed package\* --sybmol-api-key ******** --symbol-source https://server/symbols/feed
      Specify --help for a list of available options and commands.
      â›”error: Unrecognized option '--sybmol-api-key'
      
      
      Usage: dotnet nuget push [arguments] [options]
      
      Arguments:
        [root]  Specify the path to the package and your API key to push the package to the server.
      
      Options:
        -h|--help                      Show help information
        --force-english-output         Forces the application to run using an invariant, English-based culture.
        -s|--source <source>           Package source (URL, UNC/folder path or package source name) to use. Defaults to DefaultPushSource if specified in NuGet.Config.
        -ss|--symbol-source <source>   Symbol server URL to use.
        -t|--timeout <timeout>         Timeout for pushing to a server in seconds. Defaults to 300 seconds (5 minutes).
        -k|--api-key <apiKey>          The API key for the server.
        -sk|--symbol-api-key <apiKey>  The API key for the symbol server.
        -d|--disable-buffering         Disable buffering when pushing to an HTTP(S) server to decrease memory usage.
        -n|--no-symbols                If a symbols package exists, it will not be pushed to a symbols server.
        --no-service-endpoint          Does not append "api/v2/package" to the source URL.
        --interactive                  Allow the command to block and require manual action for operations like authentication.
        --skip-duplicate               If a package and version already exists, skip it and continue with the next package in the push, if any.
      .NET Command Completed - Exit Code: 1
      
      Build step '.NET: Publish NuGet package (nuget push)' changed build result to FAILURE
      Archiving artifacts
      Finished: FAILURE
      

            zastai Tim Van Holder
            luqq Jose
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: