For anyone else who stumbles upon this post via a Google Search, Karl found 
a solution and it can be found in his repo below:

https://github.com/karlmdavis/ansible-jenkins2

Thanks Karl!

On Friday, April 8, 2016 at 5:41:29 PM UTC-4, Karl Davis wrote:
>
> 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 
> doesn't seem to be honoring the 'jenkins.model.Jenkins.slaveAgentPort' system 
> property (as specified on Features controlled by system properties 
> <https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties>
> ).
>
> Is this a bug, or is this just no longer supported?
>
> Verifying that I have the property set via Bash:
> ubuntu@ip-172-31-53-116:~$ ps aux|grep java
> jenkins  14419  0.0  0.0  18744   604 ?        S    21:27   0:00 
> /usr/bin/daemon --name=jenkins --inherit 
> --env=JENKINS_HOME=/var/lib/jenkins --output=/var/log/jenkins/jenkins.log 
> --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java 
> -Djava.awt.headless=true -Djenkins.install.runSetupWizard=false 
> -Djenkins.model.Jenkins.slaveAgentPort=16123 -jar 
> /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war 
> --httpPort=8080 --prefix=/jenkins
> jenkins  14420  6.4 12.0 2476940 488960 ?      Sl   21:27   0:14 
> /usr/bin/java -Djava.awt.headless=true 
> -Djenkins.install.runSetupWizard=false 
> -Djenkins.model.Jenkins.slaveAgentPort=16123 -jar 
> /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war 
> --httpPort=8080 --prefix=/jenkins
> ubuntu   16387  0.0  0.0  10460   936 pts/0    S+   21:31   0:00 grep 
> --color=auto java
>
> Verifying that the property is being ignored via the script console:
> println(Jenkins.instance.slaveAgentPort)
> -1
>
> Thanks for the help!
> Karl M. Davis
>

-- 
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/f4cc6732-4c4e-495c-b036-e8822a2bb5f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to