From 6a3254ccdc8447886ee34accd02d29b6be993a00 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Wed, 26 Aug 2015 08:42:51 +0000 Subject: [PATCH] Allow running up to 4 concurrent jobs on each jenkins slave --- inventory/group_vars/jenkins-master | 3 +++ roles/jenkins/master/templates/slave-config.xml.j2 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/inventory/group_vars/jenkins-master b/inventory/group_vars/jenkins-master index 4ef7eabc4c..513b3715e3 100644 --- a/inventory/group_vars/jenkins-master +++ b/inventory/group_vars/jenkins-master @@ -7,11 +7,14 @@ slaves: host: jenkins-slave-el6.fedorainfracloud.org description: CentOS 6.6 labels: el EL el6 EL6 centos CentOS centos6 CentOS6 + capacity: 4 - name: EL7 host: jenkins-slave-el7.fedorainfracloud.org description: Red Hat Enterprise Linux Server 7.1 labels: el EL el7 EL7 rhel RHEL rhel7 RHEL7 + capacity: 4 - name: F22 host: jenkins-slave-f22.fedorainfracloud.org description: Fedora 22 labels: fedora Fedora fedora22 Fedora22 + capacity: 4 diff --git a/roles/jenkins/master/templates/slave-config.xml.j2 b/roles/jenkins/master/templates/slave-config.xml.j2 index b4fcc52971..ec9254336f 100644 --- a/roles/jenkins/master/templates/slave-config.xml.j2 +++ b/roles/jenkins/master/templates/slave-config.xml.j2 @@ -3,7 +3,7 @@ {{ item.name }} {{ item.description }} /srv/jenkins - 1 + {{ item.capacity }} NORMAL