summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorhelenyao <yaohelan@huawei.com>2017-03-14 19:17:01 +0800
committerhelenyao <yaohelan@huawei.com>2017-03-14 19:20:26 +0800
commita24f756da3d07c4fa3e8611e03ff2acbca54f079 (patch)
treeee90f1fabc0cbbd130bf390fb2a38ce1f0def718 /jjb
parent650d1436e7e199269eb66c4b3938297150e85414 (diff)
Fix the RELEASE_VERSION unbound issue
'RELEASE_VERSION: unbound variable' popped up when building stable docker image Change-Id: I5d4582aea2f154e0bc34cdccdd05b9df64032ed2 Signed-off-by: helenyao <yaohelan@huawei.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/releng/opnfv-docker.sh2
1 files changed, 1 insertions, 1 deletions
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