From: xudan Date: Sat, 24 Jun 2017 03:30:22 +0000 (-0400) Subject: Bugfix: Dovetail CI failed on fuel because of BRANCH: unbound variable X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=cebfb874b5d9e759f9d97f8eee9d1d0a2dfab8ce;p=releng.git Bugfix: Dovetail CI failed on fuel because of BRANCH: unbound variable 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 --- diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh index dce7e5862..6bfb109ad 100755 --- a/jjb/dovetail/dovetail-run.sh +++ b/jjb/dovetail/dovetail-run.sh @@ -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