From a24f756da3d07c4fa3e8611e03ff2acbca54f079 Mon Sep 17 00:00:00 2001 From: helenyao Date: Tue, 14 Mar 2017 19:17:01 +0800 Subject: Fix the RELEASE_VERSION unbound issue 'RELEASE_VERSION: unbound variable' popped up when building stable docker image Change-Id: I5d4582aea2f154e0bc34cdccdd05b9df64032ed2 Signed-off-by: helenyao --- jjb/releng/opnfv-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jjb') 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 -- cgit 1.2.3-korg