diff options
author | sunil unnava <sunil.unnava@att.com> | 2019-02-21 09:55:58 -0500 |
---|---|---|
committer | sunil unnava <sunil.unnava@att.com> | 2019-02-21 09:56:15 -0500 |
commit | cca85abfb66e0c280eff5ed2c7570941c2ed423e (patch) | |
tree | bca2fab68c9681b132ea464974ddcb19555d1488 | |
parent | bd44065605228152fdcb966a54a6b7559bfc37eb (diff) |
update docker tag generation
Issue-ID: DMAAP-1042
Change-Id: I883c5629f5f84bd742d23f24e0442cfb2d012ffc
Signed-off-by: sunil unnava <sunil.unnava@att.com>
-rw-r--r-- | pom.xml | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -749,15 +749,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']; |