aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscript-dmaapbc-docker-build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/script-dmaapbc-docker-build.sh b/script-dmaapbc-docker-build.sh
index 903dd64..858f5dc 100755
--- a/script-dmaapbc-docker-build.sh
+++ b/script-dmaapbc-docker-build.sh
@@ -25,9 +25,11 @@ fi
IMAGE='openecomp/dcae_dmaapbc'
VERSION=$(xpath -e '//project/version/text()' 'pom.xml')
+echo "$VERSION"
EXT=$(echo "$VERSION" | rev | cut -s -f1 -d'-' | rev)
if [ -z "$EXT" ]; then
- VERSION=$(echo "${VERSION}-STAGING")
+ VERSION="${VERSION}-STAGING"
+ echo "$VERSION"
fi
TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
echo $VERSION