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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • cli
    • None
    • 2.60.1

      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.

            Unassigned Unassigned
            melka Martin Melka
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: