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

Issue while running Jenkins-cli.jar in windows system

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • java-client-api
    • Windows

      Hi,

      AM trying to do "Reload configuration from disk" in Windows Machine through command line or jenkins job usinh Jenkins-cli.jar.

      But am getting below Error when i ran Jenkins-cli.jar.

      F:\>java -jar jenkins-cli.jar -noCertificateCheck -s http://************/jenkins/Reload
      Skipping HTTPS certificate checks altogether. Note that this is not secure at all.
      Exception in thread "main" java.io.EOFException
      at java.io.DataInputStream.readFully(Unknown Source)
      at java.io.DataInputStream.readUTF(Unknown Source)
      at java.io.DataInputStream.readUTF(Unknown Source)
      at hudson.cli.CLI.connectViaCliPort(CLI.java:232)
      at hudson.cli.CLI.<init>(CLI.java:133)
      at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
      at hudson.cli.CLI._main(CLI.java:474)
      at hudson.cli.CLI.main(CLI.java:389)
      Suppressed: java.io.IOException: Server returned HTTP response code: 403 for URL: http://****************/jenkins/cli
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78)
      at hudson.cli.CLI.connectViaHttp(CLI.java:163)
      at hudson.cli.CLI.<init>(CLI.java:137)
      ... 3 more

       

      Jar is having all the previlages and the user which is running also have admin privilages. I am not sure why it is getting failed..

      Please check the above error and let me know the way which i can achieve this.

            khmarbaise Karl-Heinz Marbaise
            avinash_511 Avinash Y
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: