aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng <lji@research.att.com>2017-03-09 16:08:32 +0000
committerLusheng <lji@research.att.com>2017-03-09 16:08:32 +0000
commit8ca44f8435d4953f501c72e886aab2c247839960 (patch)
tree5e96f2782657862c2ab132b3bb3c4b7cee6fb705
parentc29d1690c122b18d979d57ae73e2571ca09d77c0 (diff)
fixing verion
Change-Id: I7a32cdf85569adcf40300eaa8bf27a73556c83ad Signed-off-by: Lusheng <lji@research.att.com>
-rwxr-xr-xdocker-build.sh2
-rw-r--r--pom.xml3
2 files changed, 4 insertions, 1 deletions
diff --git a/docker-build.sh b/docker-build.sh
index 43c6b44..fb4cac5 100755
--- a/docker-build.sh
+++ b/docker-build.sh
@@ -111,10 +111,12 @@ EOF
IMAGE='openecomp/dcae-collector-common-event'
#TAG='1.0.0'
VERSION=$(xpath -e "//project/version/text()" "pom.xml")
+VERSION=$(echo $VERSION |sed 's/\"//')
EXT=$(echo "$VERSION" | rev | cut -s -f1 -d'-' | rev)
if [ -z "$EXT" ]; then
VERSION=$(echo "${VERSION}-STAGING")
fi
+
TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
TAG="$VERSION-$TIMESTAMP"
LFQI="${IMAGE}:${TAG}"
diff --git a/pom.xml b/pom.xml
index 97120c2..2e7b140 100644
--- a/pom.xml
+++ b/pom.xml
@@ -626,7 +626,8 @@
<artifactItem>
<groupId>org.openecomp.dcae.controller</groupId>
<artifactId>dcae-controller-service-standardeventcollector-manager</artifactId>
- <version>0.1.0-SNAPSHOT</version>
+ <!--version>0.1.0-SNAPSHOT</version-->
+ <version>${project.version}</version>
<type>zip</type>
<classifier>runtime</classifier>
<overWrite>true</overWrite>