Add timestamp to snapshot
Added the timestamp to the docker image tags
for the snapshot builds.
Change-Id: I658b781d22d21e519963b3f8da6da15df411602b
Signed-off-by: Patrick Brady <pb071s@att.com>
Issue-ID: CIMAN-132
diff --git a/cdt/pom.xml b/cdt/pom.xml
index 0c541fb..4d951f0 100644
--- a/cdt/pom.xml
+++ b/cdt/pom.xml
@@ -157,7 +157,7 @@
}
if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
project.properties['dockertag1']=project.properties['ver'] + "-latest";
- project.properties['dockertag2']="latest";
+ project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
project.properties['appc.version']=project.properties['appc.snapshot.version'];
} else {
project.properties['dockertag1']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
diff --git a/installation/appc/pom.xml b/installation/appc/pom.xml
index fee078e..2daad09 100644
--- a/installation/appc/pom.xml
+++ b/installation/appc/pom.xml
@@ -239,7 +239,7 @@
}
if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
project.properties['dockertag1']=project.properties['ver'] + "-latest";
- project.properties['dockertag2']="latest";
+ project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
project.properties['appc.version']=project.properties['appc.snapshot.version'];
} else {
project.properties['dockertag1']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";