opnfv-docker.sh: Fix unbound ARCH_TAG 93/41993/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 14 Sep 2017 16:09:35 +0000 (18:09 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 14 Sep 2017 16:09:35 +0000 (18:09 +0200)
Jenkins does not set ARCH_TAG to an empty string; instead it does
not set that variable at all when the input is empty.
Fix this by providing a default empty string in the script.

Change-Id: Iec4c38068b1ab3e8dd124f49b36759eedb084f4a
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
jjb/releng/opnfv-docker.sh

index 6ca8e37..b03505e 100644 (file)
@@ -90,6 +90,7 @@ if [[ -n "${COMMIT_ID-}" && -n "${RELEASE_VERSION-}" ]]; then
 fi
 
 ARCH_BUILD_ARG=""
+ARCH_TAG=${ARCH_TAG:-}
 if [[ -n "${ARCH_TAG}" ]]; then
     DOCKER_TAG=${ARCH_TAG}-${DOCKER_TAG}
     ARCH_BUILD_ARG="--build-arg ARCH=${ARCH_TAG}"