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 wor

Re: Automating First-Time Configuration

2016-04-08 Thread Karl Davis
tps://github.com/jenkinsci/jenkins/blob/master/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 e

TCP Slave Agent Port Disabled by Default in 2.0?

2016-04-08 Thread Karl Davis
Howdy all, As I mentioned in my last post, I'm trying to automate the setup of Jenkins 2.0. I've gotten a bit further, but now I'm running into a new problem: 'Manage Jenkins > Configure Global Security > TCP port for JNLP agents' is set to "Disabled" in new installs, by default. Further, it do

Ansible role for installing and configuring Jenkins 2

2016-04-20 Thread Karl Davis
Evening all, Just wanted to put this Ansible role I created for Jenkins 2 out there: https://github.com/karlmdavis/ansible-jenkins2. I initially tried to use/adapt some of the existing roles from other folks, but was running into too many problems with them, so started from scratch. So far, th

Re: Jenkins building a product consisting of many Maven projects? (with Jenkins Pipeline plugin?)

2016-04-27 Thread Karl Davis
Prior to the pipeline/Jenkinsfile modus operandi, I would have done the following: 1. Created Jenkins "Maven project" jobs for each separate project, with triggers/hooks set to build them when changes are found. 2. Used the builtin triggers to "Build whenever a dependency changes" to handle the

Re: Ansible role for installing and configuring Jenkins 2

2016-05-03 Thread Karl Davis
ut all the new capabilities in it. Best regards, Karl M. Davis On Thursday, April 21, 2016 at 5:46:24 AM UTC-4, Daniel Beck wrote: > > > > On 21.04.2016, at 05:41, Karl Davis > wrote: > > > > • Enables the Jenkins CLI. > >

Updated Ansible role to support final release of Jenkins 2. Secure out of the box!

2016-05-03 Thread Karl Davis
Howdy all, Now that the final 2.0 (and 2.1, even) release is out the door, I've updated my Ansible role for installing Jenkins to move away from the .deb-based install and use the official APT repo: https://github.com/karlmdavis/ansible-jenkins2. Additionally, I put together a (horrifyingly, a

Re: How to configure Maven Installation via Groovy

2016-05-03 Thread Karl Davis
Baptiste, This is great -- thanks! I had a hard time finding an example that'd auto-install Maven for me. Best regards, Karl M. Davis On Saturday, January 23, 2016 at 8:38:45 AM UTC-5, Baptiste Mathus wrote: > > > https://github.com/batmat/jez/blob/master/jenkins-master/init_scripts/add_maven_a

Re: jenkins 2.0 , not able to use jenkins-cli.jar

2016-07-14 Thread Karl Davis
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:152) >>> at hudson.cli.CL

Weird configuration with a clean install of Jenkins

2017-10-08 Thread Karl Davis
Howdy all, I am really stumped here. I've got an Ansible role that installs and configures Jenkins using the Debian packages: https://github.com/karlmdavis/ansible-role-jenkins2. It uses the -Djenkins.install.runSetupWizard=false flag, and handles the first-time setup itself. In my tests usin

Re: Weird configuration with a clean install of Jenkins

2017-10-08 Thread Karl Davis
38 AM UTC-4, Daniel Beck wrote: > > > > On 8. Oct 2017, at 17:20, Karl Davis > wrote: > > > > Shouldn't a clean install of Jenkins end up configured to use > hudson.security.HudsonPrivateSecurityRealm? > > Not if you explicitly disable the setup wizar

Re: Weird configuration with a clean install of Jenkins

2017-10-08 Thread Karl Davis
Heh. Unfortunately, I'm the idiot responsible for the role. And I'm stumped. On Sunday, October 8, 2017 at 11:30:34 AM UTC-4, Daniel Beck wrote: > > > > On 8. Oct 2017, at 17:20, Karl Davis > wrote: > > > > Just to make this even more confusing, when I&

Re: Weird configuration with a clean install of Jenkins

2017-10-08 Thread Karl Davis
ot of sense. I guess I need to pre-create the /etc/default/jenkins file, with the setup wizard disabled and *then* install Jenkins. Slightly less confusedly yours, Karl M. Davis On Sunday, October 8, 2017 at 11:36:20 AM UTC-4, Karl Davis wrote: > > Heh. Unfortunately, I'm the idiot res

Re: Weird configuration with a clean install of Jenkins

2017-10-11 Thread Karl Davis
Confirmed: that was the problem. Pre-creating /etc/default/jenkins resolved it. On Sunday, October 8, 2017 at 11:42:28 AM UTC-4, Karl Davis wrote: > > Daniel, > > Actually... maybe it *is* a race condition. When the role installs > Jenkins, it doesn't pre-create the /etc/