Bugfix: Dovetail CI failed on fuel because of BRANCH: unbound variable 35/36435/1
authorxudan <xudan16@huawei.com>
Sat, 24 Jun 2017 03:30:22 +0000 (23:30 -0400)
committerxudan <xudan16@huawei.com>
Sat, 24 Jun 2017 03:30:22 +0000 (23:30 -0400)
JIRA: DOVETAIL-451

1. Dovetail CI jobs failed on fuel becase lack of BRANCH.
   fetch_os_creds.sh: line 75: BRANCH: unbound variable
2. That's mainly because of Dovetail uses sudo to run fetch_os_creds.sh.
3. BRANCH is jenkins' env param and root's env lacks of this param.

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

index dce7e58..6bfb109 100755 (executable)
@@ -47,7 +47,7 @@ releng_repo=${WORKSPACE}/releng
 git clone https://gerrit.opnfv.org/gerrit/releng ${releng_repo} >/dev/null
 
 if [[ ${INSTALLER_TYPE} != 'joid' ]]; then
-    sudo /bin/bash ${releng_repo}/utils/fetch_os_creds.sh -d ${OPENRC} -i ${INSTALLER_TYPE} -a ${INSTALLER_IP} >${redirect}
+    ${releng_repo}/utils/fetch_os_creds.sh -d ${OPENRC} -i ${INSTALLER_TYPE} -a ${INSTALLER_IP} >${redirect}
 fi
 
 if [[ -f $OPENRC ]]; then