From cf508ac5e7ed9584980db8fa0b53ccc7e1b7c97f Mon Sep 17 00:00:00 2001 From: sunil unnava Date: Thu, 21 Feb 2019 09:54:38 -0500 Subject: update docker tag generation Issue-ID: DMAAP-1042 Change-Id: Ia892ca591860d5be6473da00ae6e145bdab7d463 Signed-off-by: sunil unnava --- pom.xml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index e51f69f..066b918 100644 --- a/pom.xml +++ b/pom.xml @@ -253,15 +253,11 @@ 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']; -- cgit 1.2.3-korg