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
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
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
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
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
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");
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
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