Re: Automating First-Time Configuration

2016-04-09 Thread Daniel Beck

On 08.04.2016, at 19:46, Karl Davis  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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/A73734AA-C391-421C-804B-804FCE2776E4%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Automating First-Time Configuration

2016-04-08 Thread Karl Davis
Daniel,

Thanks very much: super helpful! Is that documented somewhere that I should 
have found it?

That certainly does work for my needs. For folks wanting a list of which 
plugins the new setup wizard recommends, that seems to be here for now: 
jenkins/war/src/main/js/api/plugins.js 

.

Thanks again!
Karl


On Thursday, April 7, 2016 at 7:17:13 AM UTC-4, Daniel Beck wrote:
>
>
> On 06.04.2016, at 18:21, Karl Davis  > wrote: 
>
> > 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.  :-) 
>
> Pass 'false' as the value of the system property 
> 'jenkins.install.runSetupWizard', e.g.: 
>
> java -Djenkins.install.runSetupWizard=false -jar jenkins.war 
>
> This will not automate the wizard, but skip it -- but I think you'll 
> manage to install plugins and define the security realm using your tooling. 
>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/43b658d6-5a2c-41ba-9e26-863eafa6b0d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automating First-Time Configuration

2016-04-07 Thread Daniel Beck

On 06.04.2016, at 18:21, Karl Davis  wrote:

> 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.  :-)

Pass 'false' as the value of the system property 
'jenkins.install.runSetupWizard', e.g.:

java -Djenkins.install.runSetupWizard=false -jar jenkins.war

This will not automate the wizard, but skip it -- but I think you'll manage to 
install plugins and define the security realm using your tooling.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/BEA95F4F-E995-4665-BC76-9C1C32D62D8D%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Automating First-Time Configuration

2016-04-06 Thread Karl Davis
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 " role to 
work with 2.0. That role automates the installation of Jenkins, and then 
uses the 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.(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.(FullDuplexHttpStream.java:78)
at hudson.cli.CLI.connectViaHttp(CLI.java:158)
at hudson.cli.CLI.(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 jenkinsci-users+unsubscr...@googlegroups.com.
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.