0
When executing
java -jar jenkins-cli.jar -remoting -s http://maquina:9090 get-job TAL -auth user:1457c2
I am being denied connection for some reason. Jenkins version 2.89. Any idea why the error? Error stack:
java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:197) at java.io.DataInputStream.readUTF(DataInputStream.java:609) at java.io.DataInputStream.readUTF(DataInputStream.java:564) at hudson.cli.CLI.connectViaCliPort(CLI.java:254) at hudson.cli.CLI.<init>(CLI.java:137) at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:82) at hudson.cli.CLI._main(CLI.java:615) at hudson.cli.CLI.main(CLI.java:426) Suppressed: java.io.IOException: Server returned HTTP response code: 403 for URL: http://maquina:9090/cli?remoting=true at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1839) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:101) at hudson.cli.CLI.connectViaHttp(CLI.java:163) at hudson.cli.CLI.<init>(CLI.java:141) ... 3 more
Try this step by step in Jenkins Manager (another thread): https://stackoverflow.com/questions/42783458/server-returned-http-responsode-403-error-installing-jenkins-plugin
– Diego
You are receiving an HTTP 403.. You are allowed to access another machine?
– igventurelli
I solved the permission issue with the command line: java -jar Jenkins-cli.jar -remoting -s http://machine:9080 get-job %Version%_%Package% -auth user:1457c278-557 . Yet I am'
– Lucimar Rodrigues