Bugfix: Lack of DEPLOY_TYPE 55/49855/1
authorxudan <xudan16@huawei.com>
Tue, 2 Jan 2018 08:52:30 +0000 (03:52 -0500)
committerxudan <xudan16@huawei.com>
Tue, 2 Jan 2018 08:52:30 +0000 (03:52 -0500)
Set the value of DEPLOY_TYPE according to BUILG_TAG

Change-Id: I08e720dc6e049c54e249172503bcbdb7c314dc6d
Signed-off-by: xudan <xudan16@huawei.com>
jjb/dovetail/dovetail-run.sh

index 80c9929..0c389e9 100755 (executable)
@@ -13,6 +13,9 @@
 set -e
 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
 
+DEPLOY_TYPE=baremetal
+[[ $BUILD_TAG =~ "virtual" ]] && DEPLOY_TYPE=virt
+
 DOVETAIL_HOME=${WORKSPACE}/cvp
 [ -d ${DOVETAIL_HOME} ] && sudo rm -rf ${DOVETAIL_HOME}