From: helenyao Date: Tue, 14 Mar 2017 11:17:01 +0000 (+0800) Subject: Fix the RELEASE_VERSION unbound issue X-Git-Tag: danube.1.0~151 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=a24f756da3d07c4fa3e8611e03ff2acbca54f079;p=releng.git Fix the RELEASE_VERSION unbound issue 'RELEASE_VERSION: unbound variable' popped up when building stable docker image Change-Id: I5d4582aea2f154e0bc34cdccdd05b9df64032ed2 Signed-off-by: helenyao --- diff --git a/jjb/releng/opnfv-docker.sh b/jjb/releng/opnfv-docker.sh index ded743d7e..302feb03d 100644 --- a/jjb/releng/opnfv-docker.sh +++ b/jjb/releng/opnfv-docker.sh @@ -64,7 +64,7 @@ echo "Current branch: $BRANCH" if [[ "$BRANCH" == "master" ]]; then DOCKER_TAG="latest" else - if [[ "$RELEASE_VERSION" != "" ]]; then + if [[ -n "${RELEASE_VERSION-}" ]]; then release=${BRANCH##*/} DOCKER_TAG=${release}.${RELEASE_VERSION} # e.g. colorado.1.0, colorado.2.0, colorado.3.0