Can't install Jenkins plugins with the cli

71 views
Skip to first unread message

red 888

unread,
Oct 29, 2016, 10:48:57 PM10/29/16
to Jenkins Users

Running Server 2012 R2, Jenkins ver. 2.19.1


Installed Jenkins via the Windows MSI


I can't seem to install plugins with the cli:

& 'C:\Program Files (x86)\Jenkins\jre\bin\java.exe' -jar 'C:\Program Files (x86)\Jenkins\war\WEB-INF\jenkins-cli.jar' -s 'http://localhost:8080/' install-plugin 'http://updates.jenkins-ci.org/download/plugins/aws-la
mbda/0.5.5/aws-lambda.hpi'

java.io.IOException: No X-Jenkins-CLI2-Port among [X-Jenkins, null, Server, X-Content-Type-Options, X-You-Are-In-Group, X-Hudson, Date, X-Jenkins-Session, X-You-Are-Authenticated-As, X-Required-Permission, Set-Cookie, Expires, Content-Length, 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/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:152)
                at hudson.cli.CLI.<init>(CLI.java:132)
                ... 3 more


I also tried it with -name aws-lambda and just aws-lambda at the end, but did not work

Daniel Beck

unread,
Oct 30, 2016, 3:55:57 AM10/30/16
to jenkins...@googlegroups.com
Enable the JNLP port in Manage Jenkins » Configure Global Security, or wait for 2.19.2 (which should be released any day now).
> --
> 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 jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/02580ca6-829d-473b-908d-0827c1f71bdc%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

red 888

unread,
Oct 30, 2016, 6:19:42 PM10/30/16
to Jenkins Users, m...@beckweb.net
Hmm how could make this change non-interactively? Via the command line or through editing a config file?
Reply all
Reply to author
Forward
0 new messages