[compass] COMPASS vm Support ubuntu 16.04 31/17031/2
authormeimei <meimei@huawei.com>
Mon, 18 Jul 2016 08:11:19 +0000 (16:11 +0800)
committermei mei <meimei@huawei.com>
Tue, 19 Jul 2016 01:20:47 +0000 (01:20 +0000)
JIRA: COMPASS-431

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

index cfa8051..6bfc737 100644 (file)
             choices:
                 - 'mitaka'
                 - 'liberty'
+        - choice:
+            name: COMPASS_OS_VERSION_OPTION
+            choices:
+                - ''
+                - 'xenial'
 
 ########################
 # trigger macros
index 68a93a1..0259849 100644 (file)
@@ -46,6 +46,9 @@ cd $WORKSPACE
 
 export OS_VERSION=${COMPASS_OS_VERSION}
 export OPENSTACK_VERSION=${COMPASS_OPENSTACK_VERSION}
+if [[ "${COMPASS_OS_VERSION_OPTION}" = "xenial" ]] && [[ "${OPENSTACK_VERSION}" = "mitaka" ]]; then
+    export OPENSTACK_VERSION=${OPENSTACK_VERSION}_${OS_VERSION}
+fi
 ./deploy.sh --dha ${DHA_CONF} --network ${NETWORK_CONF}
 if [ $? -ne 0 ]; then
     echo "depolyment failed!"