From: Patrick Brady Date: Fri, 6 Apr 2018 22:28:17 +0000 (-0700) Subject: Add timestamp to snapshot X-Git-Tag: v1.3.0~33 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d64f8407897ac8bca1bc69935edba4222210b932;p=appc%2Fdeployment.git Add timestamp to snapshot Added the timestamp to the docker image tags for the snapshot builds. Change-Id: I658b781d22d21e519963b3f8da6da15df411602b Signed-off-by: Patrick Brady 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 @@ limitations under the License. } 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 @@ limitations under the License. } 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";