Jenkins CLI Connection Denied

0

When running

java -jar jenkins-cli.jar -remoting -s http://maquina:9090 get-job TAL -auth user:1457c2

I'm getting a connection denied for some reason. Jenkins version 2.89. Any idea why the error? Stack error:

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
    
asked by anonymous 17.01.2018 / 14:13

0 answers