why don't get swarm slaves persisted to the config.xml when calling Jenkins.instance.setNodes(Jenkins.instance.getNodes())?

2014-09-25 Thread Nico Mommaerts
Why don't get swarm slaves persisted to the config.xml when calling Jenkins.instance.setNodes(Jenkins.instance.getNodes())? After I start a swarm client I configure it (add tool locations) with a Groovy script (start & configure combined in one startup script). However when the slave goes offli

Re: how to modify/add/delete tool installations on a slave using Groovy?

2014-09-17 Thread Nico Mommaerts
My question got answered on SO, for people who want to do the same: http://stackoverflow.com/questions/25889437/how-to-modify-add-delete-tool-installations-on-a-jenkins-slave-using-groovy Op maandag 15 september 2014 10:52:44 UTC+2 schreef Nico Mommaerts: > > Hey, > > atm I am us

how to modify/add/delete tool installations on a slave using Groovy?

2014-09-15 Thread Nico Mommaerts
Hey, atm I am using a Groovy script to configure our different Jenkins masters, including the tool installations, eg: mavenDesc = Jenkins.instance.getDescriptorByName("hudson.tasks.Maven"); if (mavenDesc != null) { MavenInstallation mi = new MavenInstallation("maven3.0.2", "/home/jenkins/apac

Re: possible to use swarm plugin on dockerized jenkins (when the jnlp port is mapped to a different one)?

2014-08-14 Thread Nico Mommaerts
Ok nvrmnd, found a workaround by using the --expose argument when starting a Docker container Op donderdag 14 augustus 2014 16:23:25 UTC+2 schreef Nico Mommaerts: > > Hey, > > I have multipe Jenkins instances running as Docker containers. I have each > one configured with the

possible to use swarm plugin on dockerized jenkins (when the jnlp port is mapped to a different one)?

2014-08-14 Thread Nico Mommaerts
Hey, I have multipe Jenkins instances running as Docker containers. I have each one configured with the same fixed jnlp port, but I map that port to a different one for each container upon starting. Now when I use the swarm client (with the -master option to connect to a specific master), it co

Re: changes to the Jenkins JDK installations through Groovy don't seem to be persisted

2014-07-31 Thread Nico Mommaerts
Ok I found it: Jenkins.instance.save(); does the trick Op donderdag 31 juli 2014 15:28:53 UTC+2 schreef Nico Mommaerts: > > jdkDesc = Jenkins.instance.getDescriptorByName("hudson.model.JDK"); > JDK jdk6 = new JDK("JDK6", "/usr/lib/jvm/java-6-openjdk-amd64");

changes to the Jenkins JDK installations through Groovy don't seem to be persisted

2014-07-31 Thread Nico Mommaerts
jdkDesc = Jenkins.instance.getDescriptorByName("hudson.model.JDK"); JDK jdk6 = new JDK("JDK6", "/usr/lib/jvm/java-6-openjdk-amd64"); JDK jdk7 = new JDK("JDK7", "/usr/lib/jvm/java-7-openjdk-amd64"); jdkDesc.setInstallations(jdk6, jdk7); // this overrides any already existing jdk jdks = jdkDesc.g

how to change subversion workspace format with a Groovy script?

2014-07-26 Thread Nico Mommaerts
Hey guys, I'm trying to find out how I change the Subversion workspace format defined by the SubversionSCM plugin with a Groovy script? This is what the plugin stores as configuration: 1 10 false true I can query the value with this snippet: Jenkins.instance.getDescriptorByName