[JIRA] (JENKINS-60628) Issue while running Jenkins-cli.jar in windows system

4 views
Skip to first unread message

avinash_511@yahoo.com (JIRA)

unread,
Jan 3, 2020, 5:03:03 AM1/3/20
to jenkinsc...@googlegroups.com
Avinash Y created an issue
 
Jenkins / Task JENKINS-60628
Issue while running Jenkins-cli.jar in windows system
Issue Type: Task Task
Assignee: Karl-Heinz Marbaise
Components: java-client-api
Created: 2020-01-03 10:02
Environment: Windows
Labels: plugin
Priority: Major Major
Reporter: Avinash Y

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages