diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2018-10-31 15:23:45 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2018-10-31 16:18:59 +0800 |
commit | a3950b1227da2952b60920fec0bd87eef5791005 (patch) | |
tree | 14b35cebeeff56cafb7db7925aa12c544690f482 /engine-d-standalone/pom.xml | |
parent | 5a9c38b9a0eba253868639e42553885359c3ad44 (diff) |
Modified the Docker Tagging
Change-Id: I5c1be408fd01765be3a4ffe99debb10edf6963da
Issue-ID: HOLMES-179
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d-standalone/pom.xml')
-rw-r--r-- | engine-d-standalone/pom.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine-d-standalone/pom.xml b/engine-d-standalone/pom.xml index aad9e37..00c83df 100644 --- a/engine-d-standalone/pom.xml +++ b/engine-d-standalone/pom.xml @@ -213,6 +213,7 @@ } project.properties['project.docker.latesttag.version']=versionArray[0] + "-STAGING-latest"; + project.properties['project.docker.latesttag.version.with.timestamp'] = versionArray[0] + "-STAGING-${build.number}"; println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; @@ -244,8 +245,9 @@ <dockerFile>${basedir}/target/version/Dockerfile</dockerFile> <tags> <tag>${project.version}</tag> - <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> + <tag>${project.version}-${build.number}</tag> <tag>${project.docker.latesttag.version}</tag> + <tag>${project.docker.latesttag.version.with.timestamp}</tag> </tags> </build> </image> |