diff options
author | 2017-09-14 18:09:35 +0200 | |
---|---|---|
committer | 2017-09-14 18:09:35 +0200 | |
commit | 23829e1180fb8106a4a13fbbb6decf9217f291e4 (patch) | |
tree | 4edece24e68a0a2d20ff8793d3ce175ce9ac733c /jjb | |
parent | 6b30c00a481d452d1b9ee4468054ce59e631f19a (diff) |
opnfv-docker.sh: Fix unbound ARCH_TAG
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>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/releng/opnfv-docker.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jjb/releng/opnfv-docker.sh b/jjb/releng/opnfv-docker.sh index 6ca8e374c..b03505e81 100644 --- a/jjb/releng/opnfv-docker.sh +++ b/jjb/releng/opnfv-docker.sh @@ -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}" |