[compass] switch openstack version to liberty 31/4631/2
authormeimei <meimei@huawei.com>
Wed, 16 Dec 2015 07:46:56 +0000 (15:46 +0800)
committermei mei <meimei@huawei.com>
Wed, 16 Dec 2015 07:52:57 +0000 (07:52 +0000)
JIRA: COMPASS-204

Change-Id: Id96c6a827e309834a9deea596c5403a50c7f055c
Signed-off-by: meimei <meimei@huawei.com>
jjb/compass4nfv/compass4nfv.yml

index 1a0a6f7..3ef252f 100644 (file)
         - string:
             name: PPA_CACHE
             default: "$WORKSPACE/work/repo/"
+        - choice:
+            name: COMPASS-OPENSTACK-VERSION
+            choices:
+                - 'liberty'
+                - 'juno'
+        - choice:
+            name: COMPASS-OS-VERSION
+            choices:
+                - 'ubuntu-trusty'
+                - 'rhel7'
 
 ########################
 # builder macros
 
             cd $WORKSPACE
 
+            export OS_VERSION=${COMPASS-OS-VERSION}
+            export OPENSTACK_VERSION=${COMPASS-OPENSTACK-VERSION}
             ./deploy.sh --dha $CONFDIR/dha.yml --network $CONFDIR/network.yml
             if [ $? -ne 0 ]; then
                 echo "depolyment failed!"
             echo "Done!"
 
             ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
-            sshpass -p root scp 2>/dev/null $ssh_options root@${installer_ip}:/var/ansible/run/openstack_juno-opnfv2/ansible.log ./  &> /dev/null
+            sshpass -p root scp 2>/dev/null $ssh_options root@${installer_ip}:/var/ansible/run/openstack_${COMPASS-OPENSTACK-VERSION}-opnfv2/ansible.log ./  &> /dev/null
 
             exit $deploy_ret