aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulienBe <jb379x@att.com>2017-03-08 02:19:21 -0800
committerJulienBe <jb379x@att.com>2017-03-08 05:32:47 -0800
commitc3f8ddfdd3b34551bf4f7424163fc0fd1a94e468 (patch)
treeeda29d9fa3c6ebbd82b85f44009d2f1fd50d73d8
parent9c83a7fc42c615140a61a339c2647b2e8eac9956 (diff)
Adding tagging to our staging images
Tags will look like : version-STAGING-commitId If no 'mso.git.commit' passed, last part will be blank Change-Id: I4ba4dc1c6f292e8f1f4d2d0470678712546796e4 Signed-off-by: JulienBe <jb379x@att.com>
-rw-r--r--packages/docker/pom.xml8
-rw-r--r--pom.xml1
2 files changed, 7 insertions, 2 deletions
diff --git a/packages/docker/pom.xml b/packages/docker/pom.xml
index 6ca79b7..4bad970 100644
--- a/packages/docker/pom.xml
+++ b/packages/docker/pom.xml
@@ -109,7 +109,9 @@
<name>openecomp/mso-arquillian:%l</name>
<alias>mso-arquillian</alias>
<build>
-
+ <tags>
+ <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
+ </tags>
<cleanup>try</cleanup>
<dockerFileDir>docker-files</dockerFileDir>
<dockerFile>docker-files/Dockerfile.mso-arquillian</dockerFile>
@@ -120,7 +122,9 @@
<name>openecomp/mso:%l</name>
<alias>mso</alias>
<build>
-
+ <tags>
+ <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
+ </tags>
<cleanup>try</cleanup>
<dockerFileDir>docker-files</dockerFileDir>
<dockerFile>docker-files/Dockerfile.mso-chef-final</dockerFile>
diff --git a/pom.xml b/pom.xml
index 155debb..348a233 100644
--- a/pom.xml
+++ b/pom.xml
@@ -42,6 +42,7 @@
<nexusproxy>https://nexus.openecomp.org</nexusproxy>
<snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
<releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
+ <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
</properties>
<distributionManagement>
<repository>