summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunil unnava <sunil.unnava@att.com>2019-02-21 09:54:38 -0500
committersunil unnava <sunil.unnava@att.com>2019-02-21 09:54:53 -0500
commitcf508ac5e7ed9584980db8fa0b53ccc7e1b7c97f (patch)
tree786165fec07bce2415f5fd0881c29640a28bce12
parent5515b4595edcd336e2a1f5eb98b810375556ef18 (diff)
update docker tag generation3.0.0
Issue-ID: DMAAP-1042 Change-Id: Ia892ca591860d5be6473da00ae6e145bdab7d463 Signed-off-by: sunil unnava <sunil.unnava@att.com>
-rw-r--r--pom.xml6
1 files changed, 1 insertions, 5 deletions
diff --git a/pom.xml b/pom.xml
index e51f69f..066b918 100644
--- a/pom.xml
+++ b/pom.xml
@@ -253,15 +253,11 @@
</properties>
<source>
println project.properties['ver'];
- def versionArray;
- if ( project.properties['ver'] != null ) {
- versionArray = project.properties['ver'].split('\\.');
- }
if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
project.properties['dockertag1']=project.properties['ver'] + "-latest";
project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
} else {
- project.properties['dockertag1']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
+ project.properties['dockertag1']=project.properties['ver']+ "-STAGING-latest";
project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
}
println 'docker tag 1: ' + project.properties['dockertag1'];