[yardstick] Pass "BRANCH" variable to yardstick docekr container 61/36461/1
authorJingLu5 <lvjing5@huawei.com>
Mon, 26 Jun 2017 02:25:23 +0000 (02:25 +0000)
committerJingLu5 <lvjing5@huawei.com>
Mon, 26 Jun 2017 02:32:10 +0000 (02:32 +0000)
Recently update of utils/fetch_os_creds.sh in commit 8359219bae93a028f6205cdc9460654f9e45c217
use a "BRANCH" varibale in fuel environmet
Currently Yardstick didn't pass such variable to yardstick docker, which causes the following error:
/home/opnfv/repos/releng/utils/fetch_os_creds.sh: line 75: BRANCH: unbound variable

This patch fix this error by Pass "BRANCH" variable to yardstick docekr container

Change-Id: Ifcf3df7107b2f4b493b37c7ef5473f170a8edb94
Signed-off-by: JingLu5 <lvjing5@huawei.com>
jjb/yardstick/yardstick-daily.sh

index 973f83a..1c2abad 100755 (executable)
@@ -31,7 +31,8 @@ fi
 opts="--privileged=true --rm"
 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
     -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
-    -e YARDSTICK_BRANCH=${BRANCH} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
+    -e YARDSTICK_BRANCH=${BRANCH} -e BRANCH=${BRANCH} \
+    -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
 
 # Pull the image with correct tag
 echo "Yardstick: Pulling image opnfv/yardstick:${DOCKER_TAG}"