[validation] Fix the slave-label 73/673/2
authorCristina Pauna <cristina.pauna@enea.com>
Fri, 10 May 2019 14:45:11 +0000 (17:45 +0300)
committerCristina Pauna <cristina.pauna@enea.com>
Fri, 10 May 2019 14:59:44 +0000 (17:59 +0300)
Change the plugin used for docker build jobs. The jobs weren't
scheduled properly when using the slave-label parameter.

Also reduce the size of the slave for validation-{stream}-docker
job as we don't need docker to be on the slave

Change-Id: Ied06773d28fb8706a6072e744aa3c64cfba602f7
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
jjb/validation/validation-docker.yaml

index 17f67d3..e7a5b63 100644 (file)
     name: 'validation-{stream}-docker'
     project-type: multijob
     disabled: '{obj:disabled}'
+    node: 'centos7-builder-2c-1g'
 
     parameters:
       - validation-job-parameters:
           project: '{project}'
           branch: '{branch}'
           stream: '{stream}'
-          slave_label: 'ubuntu1604-docker-8c-8g'
-          arch_tag: 'amd64'
 
     properties:
       - throttle:
 - job-template:
     name: 'validation-docker-build-{arch_tag}-{stream}'
     disabled: '{obj:disabled}'
+    node: '{slave_label}'
+
     parameters:
       - validation-job-parameters:
           project: '{project}'
           branch: '{branch}'
           stream: '{stream}'
-          slave_label: '{slave_label}'
           arch_tag: '{arch_tag}'
+
     properties:
       - build-blocker:
           use-build-blocker: true
 
 - job-template:
     name: 'validation-docker-manifest-{stream}'
+    node: 'ubuntu1604-docker-8c-8g'
 
     parameters:
       - validation-job-parameters:
           project: '{project}'
           branch: '{branch}'
           stream: '{stream}'
-          slave_label: 'ubuntu1604-docker-8c-8g'
 
     disabled: '{obj:disabled}'
 
           project: '{project}'
           stream: '{stream}'
           branch: '{branch}'
-      - label:
-          name: SLAVE_LABEL
-          default: '{slave_label}'
-          description: 'Slave label on Jenkins'
-          all-nodes: false
-          node-eligibility: 'ignore-offline'