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

Starting build with jenkins-cli and File Parameter fails in HTTP mode

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: cli
    • Labels:
      None
    • Environment:
      2.60.1
    • Similar Issues:

      Description

      I am running into an issue with Jenkins 2.60.1 and the new "remoting-free" jenkins-cli. When running build command with string, boolean and other parameters, it works fine.
       
      However, using the File Parameter fails with the message

      ERROR: This command is requesting the deprecated -remoting mode. See [https://jenkins.io/redirect/cli-command-requires-channel]
      

      Uploading a file as a parameter is not mentioned anywhere, as far as I could find, and the help page is not helpful at all.
      If I invoke the command with -remoting mode enabled, it works, but I would expect this functionality to work even in http mode.

      For reference, this is the command I am using:

      $ java -jar jenkins-cli.jar -s https://jenkins.example.com:443/ build testing -p paramfile.txt=hello.txt
      

       

      This works without any problems with older versions.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              melka Martin Melka
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: