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

Remote execution of job is failing by Jenkins CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • cli
    • None

      Hi Team,

      We are not able to execute Jenkins job using Jenkins-cli when we have multiple file partameter in Jenlkins job and we are getting below error -

      *ERROR: This command is requesting the -remoting mode which is no longer supported. See [*https://jenkins.io/redirect/cli-command-requires-channel**]

      We have tried following things from our side for 2 different jenkins version i.e. 2.204.4 and 2.289.1 to trigger job remotely by cli- 

      Case Result Command
      job does not have any file parameter job tireggered without any issue java -jar jenkins-cli.jar -s jenkins_url -auth username:password build CLI_TEST -r 20 -s -v -p  STRING_TEST=AYUSHI
      job have 1 file parameter  job tireggered without any issue only for #1 command  For both command job was triggered  in first we are providing standard input to file parameter and in second we are providing file 
      1.  java -jar jenkins-cli.jar -s jenkins_url -auth username:password  build CLI_TEST -r 20 -s -v -p STRING_TEST=AYUSHI -p FILE_TEST1= <a.txt
      2.  java -jar jenkins-cli.jar -s jenkins_url -auth username:password  build CLI_TEST -r 20 -s -v -p STRING_TEST=AYUSHI -p FILE_TEST1=a.txt
       
      #2 give error please attached screenshot for reference 
      job have 2 file parameter  Job was not triggered   For both command job is not triggereing  in first we are providing standard input to file parameter and in second we are providing file 
      1.  java -jar jenkins-cli.jar -s jenkins_url -auth username:password  build CLI_TEST -r 20 -s -v -p STRING_TEST=AYUSHI -p FILE_TEST1= <a.txt -p FILE_TEST2= <b.txt (this is not working)
       
      2.  java -jar jenkins-cli.jar -s jenkins_url -auth username:password  build CLI_TEST -r 20 -s -v -p STRING_TEST=AYUSHI -p FILE_TEST1=a.txt -p FILE_TEST2=b.txt 
       
      #2 give error please attached screenshot for reference 
       
       
       

       

      Can you tell us how we can solve  error of triggering job remotely by cli when we have multiple file parameter ?

       

      Regards,

      Ayushi Kasat

            Unassigned Unassigned
            ayushik Ayushi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: