bottlenecks: redefine the jobs accordingly 59/14859/3
authorMatthewLi <matthew.lijun@huawei.com>
Tue, 31 May 2016 08:23:27 +0000 (04:23 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Tue, 31 May 2016 08:35:40 +0000 (04:35 -0400)
JIRA: BOTTLENECK-85

Change-Id: I6ec45a7fa292ee69a75820d1ed9ce3fd82aebe5d
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
jjb/bottlenecks/bottlenecks-ci-jobs.yml

index c3edce1..686b7d4 100644 (file)
 #--------------------------------
 # POD, INSTALLER, AND BRANCH MAPPING
 #--------------------------------
-#        brahmaputra
+#    Installers using labels
+#            CI PODs
+# This section should only contain the installers
+# that have been switched using labels for slaves
 #--------------------------------
     pod:
-        - lf-pod2:
-            installer: fuel
-            disabled: true
-            <<: *brahmaputra
-        - intel-pod5:
-            installer: joid
-            disabled: true
+#compass CI PODs
+        - baremetal:
+            slave-label: compass-baremetal
+            installer: compass
+            auto-trigger-name: 'daily-trigger-disabled'
+            <<: *master
+        - virtual:
+            slave-label: compass-virtual
+            installer: compass
+            auto-trigger-name: 'daily-trigger-disabled'
+            <<: *master
+        - baremetal:
+            slave-label: compass-baremetal
+            installer: compass
+            auto-trigger-name: 'daily-trigger-disabled'
             <<: *brahmaputra
-        - huawei-pod1:
+        - virtual:
+            slave-label: compass-virtual
             installer: compass
-            disabled: true
+            auto-trigger-name: 'daily-trigger-disabled'
             <<: *brahmaputra
+
 #--------------------------------
-#        master
+#        None-CI PODs
 #--------------------------------
-        - lf-pod2:
-            installer: fuel
-            <<: *master
-        - ericsson-pod1:
-            installer: fuel
-            disabled: true
-            <<: *master
-        - ericsson-pod2:
-            installer: fuel
-            disabled: true
-            <<: *master
-        - intel-pod6:
+        - orange-pod2:
+            slave-label: '{pod}'
             installer: joid
-            disabled: true
-            <<: *master
-        - intel-pod8:
-            installer: compass
-            disabled: true
-            <<: *master
-        - zte-pod1:
-            installer: fuel
-            disabled: true
-            <<: *master
+            auto-trigger-name: 'daily-trigger-disabled'
+            <<: *brahmaputra
         - orange-pod2:
+            slave-label: '{pod}'
             installer: joid
-            disabled: false
+            auto-trigger-name: 'daily-trigger-disabled'
             <<: *master
-#--------------------------------
+        - huawei-pod2:
+            slave-label: '{pod}'
+            installer: compass
+            auto-trigger-name: 'daily-trigger-disabled'
+            <<: *master
+
+#--------------------------------------------
     suite:
         - 'rubbos'
         - 'vstf'
 - job-template:
     name: 'bottlenecks-{installer}-{suite}-{pod}-daily-{stream}'
 
-    disabled: '{disabled}'
-
     wrappers:
         - build-name:
             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
+        - timeout:
+            timeout: 180
+            abort: true
+
+    triggers:
+        - '{auto-trigger-name}'
 
     parameters:
         - project-parameter:
             project: '{project}'
-        - '{pod}-defaults'
+        - '{slave-label}-defaults'
         - '{installer}-defaults'
-        - 'bottlenecks-params-{pod}'
+        - 'bottlenecks-params-{slave-label}'
         - string:
             name: REPO_DIR
             default: "/home/opnfv/bottlenecks"
 ####################
 
 - parameter:
-    name: 'bottlenecks-params-intel-pod5'
-    parameters:
-        - string:
-            name: BOTTLENECKS_DB_TARGET
-            default: '213.77.62.197'
-            description: 'Arguments to use in order to choose the backend DB'
-
-- parameter:
-    name: 'bottlenecks-params-intel-pod6'
-    parameters:
-        - string:
-            name: BOTTLENECKS_DB_TARGET
-            default: '213.77.62.197'
-            description: 'Arguments to use in order to choose the backend DB'
-
-- parameter:
-    name: 'bottlenecks-params-intel-pod8'
-    parameters:
-        - string:
-            name: BOTTLENECKS_DB_TARGET
-            default: '213.77.62.197'
-            description: 'Arguments to use in order to choose the backend DB'
-
-- parameter:
-    name: 'bottlenecks-params-ericsson-pod1'
-    parameters:
-        - string:
-            name: BOTTLENECKS_DB_TARGET
-            default: '213.77.62.197'
-            description: 'Arguments to use in order to choose the backend DB'
-
-- parameter:
-    name: 'bottlenecks-params-ericsson-pod2'
-    parameters:
-        - string:
-            name: BOTTLENECKS_DB_TARGET
-            default: '213.77.62.197'
-            description: 'Arguments to use in order to choose the backend DB'
-
-- parameter:
-    name: 'bottlenecks-params-lf-pod2'
+    name: 'bottlenecks-params-compass-baremetal'
     parameters:
         - string:
             name: BOTTLENECKS_DB_TARGET
-            default: '213.77.62.197'
+            default: '104.197.68.199:8086'
             description: 'Arguments to use in order to choose the backend DB'
 
 - parameter:
-    name: 'bottlenecks-params-huawei-pod1'
+    name: 'bottlenecks-params-compass-virtual'
     parameters:
         - string:
             name: BOTTLENECKS_DB_TARGET
-            default: '213.77.62.197'
+            default: ''
             description: 'Arguments to use in order to choose the backend DB'
 
 - parameter:
-    name: 'bottlenecks-params-zte-pod1'
+    name: 'bottlenecks-params-huawei-pod2'
     parameters:
         - string:
             name: BOTTLENECKS_DB_TARGET
-            default: '213.77.62.197'
+            default: '104.197.68.199:8086'
             description: 'Arguments to use in order to choose the backend DB'
 
 - parameter:
     parameters:
         - string:
             name: BOTTLENECKS_DB_TARGET
-            default: '213.77.62.197'
+            default: '104.197.68.199:8086'
             description: 'Arguments to use in order to choose the backend DB'