Howdy all! Just starting to play around a bit with the Jenkins 2 beta, and--as a devops guy--I'm of course interested in automating the installation and configuration of it all. Specifically, I'm trying to update the " ansible-jenkins <https://github.com/karlmdavis/ansible-jenkins>" role to work with 2.0. That role automates the installation of Jenkins, and then uses the Jenkins CLI <https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI> to install plugins, etc.
However, it looks like, given the new out-of-the-box experience, the CLI is disabled until the admin has gone through the GUI config wizard. Specifically, the Jenkins CLI is returning this error: ubuntu@ip-172-31-53-178:~$ sudo java -jar /opt/jenkins/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-Authe nticated-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:290) at hudson.cli.CLI.<init>(CLI.java:128) at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72) at hudson.cli.CLI._main(CLI.java:479) at hudson.cli.CLI.main(CLI.java:390) 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:158) at hudson.cli.CLI.<init>(CLI.java:132) ... 3 more So... is there any way to automate that new OOB experience from a command line? Preferably without having to use cURL or something to pretend I'm clicking around in the webapp. :-) Thanks! Karl -- 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/70b3b7a3-b39c-4df4-af8d-8fecbdbb51ae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
