by default jenkins 2.0 ships with the jnlp agent port disabled. you need to enable it in the global security page
On 13 July 2016 at 15:56, fayyaz rehman <[email protected]> wrote: > Hi there, > > I am not able to use cli > I am having following error while trying to execute. I am new to jenkins > 2.0. somebody help me out. Any easy solution > > $ java -jar jenkins-cli.jar -s http://localhost:8080/jenkins/ help > > java.io.IOException: No X-Jenkins-CLI2-Port among [null, > X-Required-Permission, X-Jenkins, X-You-Are-In-Group, X-Hudson, > Content-Length, Expires, X-You-Are-Authenticated-As, > X-Permission-Implied-By, Set-Cookie, Server, X-Content-Type-Options, Date, > X-Jenkins-Session, Content-Type] > at hudson.cli.CLI.getCliTcpPort(CLI.java:284) > at hudson.cli.CLI.<init>(CLI.java:128) > at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72) > at hudson.cli.CLI._main(CLI.java:473) > at hudson.cli.CLI.main(CLI.java:384) > Suppressed: java.io.IOException: Server returned HTTP response code: 403 > for URL: http://localhost:8080/jenkins/cli > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628) > at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78) > at hudson.cli.CLI.connectViaHttp(CLI.java:152) > at hudson.cli.CLI.<init>(CLI.java:132) > ... 3 more > > > > On Saturday, 9 April 2016 22:37:37 UTC+5, Daniel Beck wrote: >> >> >> On 08.04.2016, at 19:46, Karl Davis <[email protected]> wrote: >> >> > Is that documented somewhere that I should have found it? >> >> It's documented here: >> >> https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties >> >> Not really a case of 'should have found it'. >> >> -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/f599e9eb-0137-41ed-9f9b-3b5441387534%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/f599e9eb-0137-41ed-9f9b-3b5441387534%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMzYa3Fx-2OM--G1gNgtP%2Bud6aUwiWZD0ZWf_v6dMWgBYw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
