[compass4nfv] enable opencontrail ci jobs in compass 03/14503/4
authormeimei <meimei@huawei.com>
Mon, 23 May 2016 07:43:12 +0000 (15:43 +0800)
committermeimei <meimei@huawei.com>
Tue, 24 May 2016 02:40:31 +0000 (10:40 +0800)
- enable ocl scenario only in ubuntu deployment
- disable ci jobs of Brahmaputra
- use huawei-pod1 instead  untill intel8 back to online

JIRA: COMPASS-393

Change-Id: I76245d8c5f650ee85664d86fe4d9da1ca2c6e76a
Signed-off-by: meimei <meimei@huawei.com>
jjb/compass4nfv/compass-ci-jobs.yml
jjb/compass4nfv/compass-deploy.sh

index ce9193c..40f5445 100644 (file)
@@ -34,7 +34,8 @@
         - huawei-pod2:
             os-version: 'centos7'
             <<: *master
         - huawei-pod2:
             os-version: 'centos7'
             <<: *master
-        - intel-pod8:
+#        - intel-pod8:
+        - huawei-pod1:
             os-version: 'trusty'
             <<: *master
         - huawei-virtual:
             os-version: 'trusty'
             <<: *master
         - huawei-virtual:
     scenario:
         - 'os-nosdn-nofeature-ha':
             disabled: false
     scenario:
         - 'os-nosdn-nofeature-ha':
             disabled: false
-            auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
+            auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
         - 'os-odl_l2-nofeature-ha':
             disabled: false
         - 'os-odl_l2-nofeature-ha':
             disabled: false
-            auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
+            auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
         - 'os-odl_l3-nofeature-ha':
             disabled: false
         - 'os-odl_l3-nofeature-ha':
             disabled: false
-            auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
+            auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
         - 'os-onos-nofeature-ha':
             disabled: false
         - 'os-onos-nofeature-ha':
             disabled: false
-            auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
+            auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
         - 'os-ocl-nofeature-ha':
             disabled: false
         - 'os-ocl-nofeature-ha':
             disabled: false
-            auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
+            auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
 
     jobs:
         - 'compass-{scenario}-{pod}-daily-{stream}'
 
     jobs:
         - 'compass-{scenario}-{pod}-daily-{stream}'
 # trigger macros
 ########################
 - trigger:
 # trigger macros
 ########################
 - trigger:
-    name: 'compass-os-nosdn-nofeature-ha-huawei-pod2-trigger'
+    name: 'compass-os-nosdn-nofeature-ha-huawei-pod2-master-trigger'
     triggers:
         - timed: '0 3 * * *'
 - trigger:
     triggers:
         - timed: '0 3 * * *'
 - trigger:
-    name: 'compass-os-odl_l2-nofeature-ha-huawei-pod2-trigger'
+    name: 'compass-os-odl_l2-nofeature-ha-huawei-pod2-master-trigger'
     triggers:
         - timed: '0 21 * * *'
 - trigger:
     triggers:
         - timed: '0 21 * * *'
 - trigger:
-    name: 'compass-os-odl_l3-nofeature-ha-huawei-pod2-trigger'
+    name: 'compass-os-odl_l3-nofeature-ha-huawei-pod2-master-trigger'
     triggers:
         - timed: ''
 - trigger:
     triggers:
         - timed: ''
 - trigger:
-    name: 'compass-os-onos-nofeature-ha-huawei-pod2-trigger'
+    name: 'compass-os-onos-nofeature-ha-huawei-pod2-master-trigger'
     triggers:
         - timed: '0 15 * * *'
 - trigger:
     triggers:
         - timed: '0 15 * * *'
 - trigger:
-    name: 'compass-os-ocl-nofeature-ha-huawei-pod2-trigger'
+    name: 'compass-os-ocl-nofeature-ha-huawei-pod2-master-trigger'
     triggers:
     triggers:
-        - timed: '0 9 * * *'
+        - timed: ''
+
 - trigger:
 - trigger:
-    name: 'compass-os-nosdn-nofeature-ha-huawei-pod1-trigger'
+    name: 'compass-os-nosdn-nofeature-ha-huawei-pod1-master-trigger'
     triggers:
     triggers:
-        - timed: '0 3 * * * '
+        - timed: '0 3 * * *'
 - trigger:
 - trigger:
-    name: 'compass-os-odl_l2-nofeature-ha-huawei-pod1-trigger'
+    name: 'compass-os-odl_l2-nofeature-ha-huawei-pod1-master-trigger'
     triggers:
         - timed: '0 21 * * *'
 - trigger:
     triggers:
         - timed: '0 21 * * *'
 - trigger:
-    name: 'compass-os-odl_l3-nofeature-ha-huawei-pod1-trigger'
+    name: 'compass-os-odl_l3-nofeature-ha-huawei-pod1-master-trigger'
     triggers:
         - timed: ''
 - trigger:
     triggers:
         - timed: ''
 - trigger:
-    name: 'compass-os-onos-nofeature-ha-huawei-pod1-trigger'
+    name: 'compass-os-onos-nofeature-ha-huawei-pod1-master-trigger'
     triggers:
         - timed: '0 15 * * *'
 - trigger:
     triggers:
         - timed: '0 15 * * *'
 - trigger:
-    name: 'compass-os-ocl-nofeature-ha-huawei-pod1-trigger'
+    name: 'compass-os-ocl-nofeature-ha-huawei-pod1-master-trigger'
     triggers:
         - timed: '0 9 * * *'
     triggers:
         - timed: '0 9 * * *'
+
 - trigger:
 - trigger:
-    name: 'compass-os-nosdn-nofeature-ha-intel-pod8-trigger'
+    name: 'compass-os-nosdn-nofeature-ha-huawei-pod1-brahmaputra-trigger'
     triggers:
     triggers:
-        - timed: '0 3 * * *'
+        - timed: ''
 - trigger:
 - trigger:
-    name: 'compass-os-odl_l2-nofeature-ha-intel-pod8-trigger'
+    name: 'compass-os-odl_l2-nofeature-ha-huawei-pod1-brahmaputra-trigger'
     triggers:
     triggers:
-        - timed: '0 21 * * *'
+        - timed: ''
 - trigger:
 - trigger:
-    name: 'compass-os-odl_l3-nofeature-ha-intel-pod8-trigger'
+    name: 'compass-os-odl_l3-nofeature-ha-huawei-pod1-brahmaputra-trigger'
     triggers:
         - timed: ''
 - trigger:
     triggers:
         - timed: ''
 - trigger:
-    name: 'compass-os-onos-nofeature-ha-intel-pod8-trigger'
+    name: 'compass-os-onos-nofeature-ha-huawei-pod1-brahmaputra-trigger'
     triggers:
     triggers:
-        - timed: '0 15 * * *'
+        - timed: ''
 - trigger:
 - trigger:
-    name: 'compass-os-ocl-nofeature-ha-intel-pod8-trigger'
+    name: 'compass-os-ocl-nofeature-ha-huawei-pod1-brahmaputra-trigger'
     triggers:
     triggers:
-        - timed: '0 9 * * *'
+        - timed: ''
+
+- trigger:
+    name: 'compass-os-nosdn-nofeature-ha-intel-pod8-master-trigger'
+    triggers:
+        - timed: ''
+- trigger:
+    name: 'compass-os-odl_l2-nofeature-ha-intel-pod8-master-trigger'
+    triggers:
+        - timed: ''
+- trigger:
+    name: 'compass-os-odl_l3-nofeature-ha-intel-pod8-master-trigger'
+    triggers:
+        - timed: ''
+- trigger:
+    name: 'compass-os-onos-nofeature-ha-intel-pod8-master-trigger'
+    triggers:
+        - timed: ''
+- trigger:
+    name: 'compass-os-ocl-nofeature-ha-intel-pod8-master-trigger'
+    triggers:
+        - timed: ''
+
 - trigger:
 - trigger:
-    name: 'compass-os-nosdn-nofeature-ha-huawei-virtual-trigger'
+    name: 'compass-os-nosdn-nofeature-ha-huawei-virtual-master-trigger'
     triggers:
         - timed: '0 3 * * *'
 - trigger:
     triggers:
         - timed: '0 3 * * *'
 - trigger:
-    name: 'compass-os-odl_l2-nofeature-ha-huawei-virtual-trigger'
+    name: 'compass-os-odl_l2-nofeature-ha-huawei-virtual-master-trigger'
     triggers:
         - timed: '0 21 * * *'
 - trigger:
     triggers:
         - timed: '0 21 * * *'
 - trigger:
-    name: 'compass-os-odl_l3-nofeature-ha-huawei-virtual-trigger'
+    name: 'compass-os-odl_l3-nofeature-ha-huawei-virtual-master-trigger'
     triggers:
         - timed: ''
 - trigger:
     triggers:
         - timed: ''
 - trigger:
-    name: 'compass-os-onos-nofeature-ha-huawei-virtual-trigger'
+    name: 'compass-os-onos-nofeature-ha-huawei-virtual-master-trigger'
     triggers:
         - timed: '0 15 * * *'
 - trigger:
     triggers:
         - timed: '0 15 * * *'
 - trigger:
-    name: 'compass-os-ocl-nofeature-ha-huawei-virtual-trigger'
+    name: 'compass-os-ocl-nofeature-ha-huawei-virtual-master-trigger'
     triggers:
         - timed: '0 9 * * *'
     triggers:
         - timed: '0 9 * * *'
+- trigger:
+    name: 'compass-os-nosdn-nofeature-ha-huawei-virtual-brahmaputra-trigger'
+    triggers:
+        - timed: ''
+- trigger:
+    name: 'compass-os-odl_l2-nofeature-ha-huawei-virtual-brahmaputra-trigger'
+    triggers:
+        - timed: ''
+- trigger:
+    name: 'compass-os-odl_l3-nofeature-ha-huawei-virtual-brahmaputra-trigger'
+    triggers:
+        - timed: ''
+- trigger:
+    name: 'compass-os-onos-nofeature-ha-huawei-virtual-brahmaputra-trigger'
+    triggers:
+        - timed: ''
+- trigger:
+    name: 'compass-os-ocl-nofeature-ha-huawei-virtual-brahmaputra-trigger'
+    triggers:
+        - timed: ''
index 790d43b..098cfe9 100644 (file)
@@ -24,12 +24,19 @@ echo 1 > /proc/sys/vm/drop_caches
 
 export CONFDIR=$WORKSPACE/deploy/conf
 export ISO_URL=file://$BUILD_DIRECTORY/compass.iso
 
 export CONFDIR=$WORKSPACE/deploy/conf
 export ISO_URL=file://$BUILD_DIRECTORY/compass.iso
+
+if [[ "${DEPLOY_SCENARIO}" =~ "-ocl" ]]
+    export NETWORK_CONF_FILE=network_ocl.yml
+else
+    export NETWORK_CONF_FILE=network.yml
+fi
+
 if [[ "$NODE_NAME" =~ "-virtual" ]]; then
 if [[ "$NODE_NAME" =~ "-virtual" ]]; then
-    export NETWORK_CONF=$CONFDIR/vm_environment/$NODE_NAME/network.yml
+    export NETWORK_CONF=$CONFDIR/vm_environment/$NODE_NAME/${NETWORK_CONF_FILE}
     export DHA_CONF=$CONFDIR/vm_environment/${DEPLOY_SCENARIO}.yml
 else
     export INSTALL_NIC=eth1
     export DHA_CONF=$CONFDIR/vm_environment/${DEPLOY_SCENARIO}.yml
 else
     export INSTALL_NIC=eth1
-    export NETWORK_CONF=$CONFDIR/hardware_environment/$NODE_NAME/network.yml
+    export NETWORK_CONF=$CONFDIR/hardware_environment/$NODE_NAME/${NETWORK_CONF_FILE}
     export DHA_CONF=$CONFDIR/hardware_environment/$NODE_NAME/${DEPLOY_SCENARIO}.yml
 fi
 
     export DHA_CONF=$CONFDIR/hardware_environment/$NODE_NAME/${DEPLOY_SCENARIO}.yml
 fi