[iec] Multiple operating systems support 94/1094/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 29 Jun 2019 16:31:22 +0000 (18:31 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 1 Jul 2019 13:23:13 +0000 (15:23 +0200)
Add an `os` matrix to our IEC CI jobs, preparing for enabling
CentOS7/Ubuntu18.04 jobs in parallel to existing Ubuntu16.04.

Change-Id: I1a76fa3a187331b079aa78b2cbe58bd6bdc118a3
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
jjb/iec/iec.yaml

index 0e6308c..1c4a758 100644 (file)
       - fuel
       - compass
 
+    # -------------------------------
+    # OPERATING SYSTEM DEFINITIONS
+    # -------------------------------
+    os:
+      - ubuntu1604
+      - ubuntu1804
+      - centos7
+
     # -------------------------------
     # DEPLOY TYPE DEFINITIONS
     # -------------------------------
       # Compass does not run against baremetal PODs yet
       - installer: compass
         deploy_type: baremetal
+      - installer: compass
+        os: centos7
+      - installer: compass
+        os: ubuntu1804
 
     # -------------------------------
     # USECASE DEFINITIONS
           scenario: 'k8-calico-iec-noha'
 
     jobs:
-      - 'iec-{installer}-{deploy_type}-daily-{stream}'
-      - 'iec-deploy-{installer}-{deploy_type}-daily-{stream}'
-      - 'iec-destroy-{installer}-{deploy_type}-daily-{stream}'
-      - 'iec-install-{usecase}-{installer}-{deploy_type}-daily-{stream}'
+      - 'iec-{installer}-{deploy_type}-{os}-daily-{stream}'
+      - 'iec-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
+      - 'iec-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
+      - 'iec-install-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
 
 ##############
 # PARAMETERS #
 # job templates
 ########################
 - job-template:
-    name: 'iec-{installer}-{deploy_type}-daily-{stream}'
+    name: 'iec-{installer}-{deploy_type}-{os}-daily-{stream}'
     disabled: '{obj:disabled}'
     concurrent: false
     node: '{slave-label}'
       - build-blocker:
           use-build-blocker: true
           blocking-jobs:
-            - '.*-fuel-{deploy_type}-daily-.*'
-            - '.*-compass-{deploy_type}-daily-.*'
+            - '.*-fuel-{deploy_type}-.*'
+            - '.*-compass-{deploy_type}-.*'
           blocking-level: 'NODE'
 
     wrappers:
           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
 
     triggers:
-      - 'iec-{installer}-{deploy_type}-daily-{stream}-trigger'
+      - 'iec-{installer}-{deploy_type}-{os}-daily-{stream}-trigger'
 
     parameters:
       - lf-infra-parameters:
 
     builders:
       - trigger-builds:
-          - project: 'iec-deploy-{installer}-{deploy_type}-daily-{stream}'
+          - project: 'iec-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
             current-parameters: false
             predefined-parameters:
               DEPLOY_SCENARIO={scenario}
           - project:
               !j2: |
                 {%- for uc in usecase -%}
-                iec-install-{{ uc | first }}-{{ installer }}-{{ deploy_type }}-daily-{{ stream }}
+                iec-install-{{ uc | first }}-{{ installer }}-{{ deploy_type }}-{{ os }}-daily-{{ stream }}
                 {%- if not loop.last -%},{%- endif -%}
                 {%- endfor %}
             current-parameters: false
               build-step-failure-threshold: 'never'
               failure-threshold: 'never'
               unstable-threshold: 'FAILURE'
-          - project: 'iec-destroy-{installer}-{deploy_type}-daily-{stream}'
+          - project: 'iec-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
             current-parameters: false
             predefined-parameters:
               DEPLOY_SCENARIO={scenario}
             block: true
 
 - job-template:
-    name: 'iec-deploy-{installer}-{deploy_type}-daily-{stream}'
+    name: 'iec-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
     concurrent: true
     node: '{slave-label}'
     properties: &properties
       - build-blocker:
           use-build-blocker: true
           blocking-jobs:
-            - '.*-deploy-{installer}-{deploy_type}-daily-.*'
-            - '.*-destroy-{installer}-{deploy_type}-daily-.*'
-            - '.*-install-.*-{installer}-{deploy_type}-daily-.*'
+            - '.*-deploy-{installer}-{deploy_type}-.*'
+            - '.*-destroy-{installer}-{deploy_type}-.*'
+            - '.*-install-.*-{installer}-{deploy_type}-.*'
           blocking-level: 'NODE'
 
     parameters:
       - string:
           name: DEPLOY_SCENARIO
           default: '{scenario}'
+      - string:
+          name: EXTRA_ARGS
+          default: '-o {os}'
 
     wrappers: &wrappers
       - build-name:
       - lf-infra-publish
 
 - job-template:
-    name: 'iec-destroy-{installer}-{deploy_type}-daily-{stream}'
+    name: 'iec-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
     concurrent: true
     node: '{slave-label}'
     properties: *properties
           default: '{scenario}'
       - string:
           name: EXTRA_ARGS
-          default: '-EEE'
+          default: '-EEE -o {os}'
 
     wrappers: *wrappers
     scm: *scm
     publishers: *publishers
 
 - job-template:
-    name: 'iec-install-{usecase}-{installer}-{deploy_type}-daily-{stream}'
+    name: 'iec-install-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
     concurrent: true
     node: '{slave-label}'
     properties: *properties
 # Akraino IEC CI Baremetal Triggers running against master branch
 # ----------------------------------------------------------------
 - trigger:
-    name: 'iec-fuel-virtual-daily-master-trigger'
+    name: 'iec-fuel-virtual-ubuntu1604-daily-master-trigger'
     triggers:
-      - timed: '0 1 * * *'
+      - timed: '0 1 * * 1,3,5'
 - trigger:
-    name: 'iec-fuel-baremetal-daily-master-trigger'
+    name: 'iec-fuel-baremetal-ubuntu1604-daily-master-trigger'
     triggers:
       - timed: ''
 - trigger:
-    name: 'iec-compass-virtual-daily-master-trigger'
+    name: 'iec-compass-virtual-ubuntu1604-daily-master-trigger'
     triggers:
       - timed: '0 13 * * *'
+- trigger:
+    name: 'iec-fuel-virtual-ubuntu1804-daily-master-trigger'
+    triggers:
+      - timed: '0 1 * * 2,6'
+- trigger:
+    name: 'iec-fuel-baremetal-ubuntu1804-daily-master-trigger'
+    triggers:
+      - timed: ''
+- trigger:
+    name: 'iec-fuel-virtual-centos7-daily-master-trigger'
+    triggers:
+      - timed: '0 1 * * 4,7'
+- trigger:
+    name: 'iec-fuel-baremetal-centos7-daily-master-trigger'
+    triggers:
+      - timed: ''