[compass]bugfix: wrong parameter name 49/4749/1
authormeimei <meimei@huawei.com>
Thu, 17 Dec 2015 06:39:09 +0000 (14:39 +0800)
committermeimei <meimei@huawei.com>
Thu, 17 Dec 2015 06:39:09 +0000 (14:39 +0800)
we cannot use '-' in parameter-name

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

index 952a01b..3645bbb 100644 (file)
             name: PPA_CACHE
             default: "$WORKSPACE/work/repo/"
         - choice:
-            name: COMPASS-OPENSTACK-VERSION
+            name: COMPASS_OPENSTACK_VERSION
             choices:
                 - 'liberty'
                 - 'juno'
         - choice:
-            name: COMPASS-OS-VERSION
+            name: COMPASS_OS_VERSION
             choices:
                 - 'ubuntu-trusty'
                 - 'rhel7'
             export EXTERNAL_NIC=vnic_ci
             cd $WORKSPACE
 
+            export OS_VERSION=${COMPASS_OS_VERSION}
+            export OPENSTACK_VERSION=${COMPASS_OPENSTACK_VERSION}
             ./deploy.sh $FLAVOR_CONF
             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_${COMPASS-OPENSTACK-VERSION}-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
 
 
             cd $WORKSPACE
 
-            export OS_VERSION=${COMPASS-OS-VERSION}
-            export OPENSTACK_VERSION=${COMPASS-OPENSTACK-VERSION}
+            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_${COMPASS-OPENSTACK-VERSION}-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