summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2018-04-03 16:49:39 -0700
committerJessica Wagantall <jwagantall@linuxfoundation.org>2018-04-03 16:49:39 -0700
commite5b814d61ffb827b024e5c5e0376f90f08d10e81 (patch)
tree4e0e8dedfc99e098b92a9a029b5d7377eae9a4a0 /shell
parentfd057a0ea5e080ea3bfa32f74796333a9ac1f8ab (diff)
Fix quotes in shell script
Global variables defined in Jenkins need double quotes to be translated properly in the case section. Change-Id: Ida76cd90314ef59f24013f7da80a2b5364fc9480 Issue-ID: CIMAN-132 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Diffstat (limited to 'shell')
-rw-r--r--shell/docker-build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/docker-build.sh b/shell/docker-build.sh
index c8dbd706d..79907845d 100644
--- a/shell/docker-build.sh
+++ b/shell/docker-build.sh
@@ -6,11 +6,11 @@ set -e -o pipefail
FULL_DATE=`date +'%Y%m%dT%H%M%S'`
IMAGE_VERSION=`xmlstarlet sel -N "x=http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:version" pom.xml | cut -c1-5`
-case $DOCKERREGISTRY in
- '$DOCKER_REGISTRY:10004') DOCKER_TAG="$IMAGE_VERSION"-STAGING-"$FULL_DATE"Z
+case "$DOCKERREGISTRY" in
+ "$DOCKER_REGISTRY:10004") DOCKER_TAG="$IMAGE_VERSION"-STAGING-"$FULL_DATE"Z
echo "Using tag $DOCKER_TAG"
;;
- '$DOCKER_REGISTRY:10003') DOCKER_TAG="$IMAGE_VERSION"-SNAPSHOT-"$FULL_DATE"Z
+ "$DOCKER_REGISTRY:10003") DOCKER_TAG="$IMAGE_VERSION"-SNAPSHOT-"$FULL_DATE"Z
echo "Using tag $DOCKER_TAG"
;;
esac