diff options
author | sunil unnava <sunil.unnava@att.com> | 2019-02-21 09:54:38 -0500 |
---|---|---|
committer | sunil unnava <sunil.unnava@att.com> | 2019-02-21 09:54:53 -0500 |
commit | cf508ac5e7ed9584980db8fa0b53ccc7e1b7c97f (patch) | |
tree | 786165fec07bce2415f5fd0881c29640a28bce12 /pom.xml | |
parent | 5515b4595edcd336e2a1f5eb98b810375556ef18 (diff) |
update docker tag generation3.0.0
Issue-ID: DMAAP-1042
Change-Id: Ia892ca591860d5be6473da00ae6e145bdab7d463
Signed-off-by: sunil unnava <sunil.unnava@att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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']; |