From d566f9c26bd707725841d31def71a6d41a8db706 Mon Sep 17 00:00:00 2001 From: sunil unnava Date: Wed, 13 Feb 2019 17:45:31 -0500 Subject: update docker image tags Issue-ID: DMAAP-1042 Change-Id: Ia2fa750cb7507e6615a61ed3d7fe872709140939 Signed-off-by: sunil unnava --- pom.xml | 55 ++++++++++++++++++++++++++++++++++++++++++++++-------- version.properties | 2 +- 2 files changed, 48 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 14d8064..582dd27 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.onap.dmaap.zookeeper zookeepr - 2.0.0-SNAPSHOT + 3.0.0-SNAPSHOT zookeeper @@ -123,8 +123,8 @@ src/main/docker docker-hub - ${zookeeperImg} - latest + ${dockertag1} + ${dockertag2} true @@ -157,7 +157,7 @@ onap/dmaap/zookeeper - ${docker.push.registry}/onap/dmaap/zookeeper:${zookeeperImg} + ${docker.push.registry}/onap/dmaap/zookeeper:${dockertag2}} ${skip.docker.push} @@ -170,7 +170,7 @@ onap/dmaap/zookeeper - ${docker.push.registry}/onap/dmaap/zookeeper:latest + ${docker.push.registry}/onap/dmaap/zookeeper:${dockertag1} ${skip.docker.push} @@ -182,7 +182,7 @@ push - ${docker.push.registry}/onap/dmaap/zookeeper:${zookeeperImg} + ${docker.push.registry}/onap/dmaap/zookeeper:${dockertag2} ${skip.docker.push} @@ -194,7 +194,7 @@ push - ${docker.push.registry}/onap/dmaap/zookeeper:latest + ${docker.push.registry}/onap/dmaap/zookeeper:${dockertag1} ${skip.docker.push} @@ -206,7 +206,8 @@ UTF-8 - 2.0.0 + ${maven.build.timestamp} + yyyyMMdd'T'HHmmss'Z' /content/sites/site/org/onap/dmaap/zookeeper/${project.artifactId}/${project.version} true true @@ -234,6 +235,44 @@ false false + + + + org.codehaus.groovy.maven + gmaven-plugin + + + validate + + execute + + + + ${project.version} + ${maven.build.timestamp} + + + 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['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp']; + } + println 'docker tag 1: ' + project.properties['dockertag1']; + println 'docker tag 2: ' + project.properties['dockertag2']; + + + + + + + diff --git a/version.properties b/version.properties index 94925e5..b24f719 100644 --- a/version.properties +++ b/version.properties @@ -24,7 +24,7 @@ # Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... ) # because they are used in Jenkins, whose plug-in doesn't support -major=2 +major=3 minor=0 patch=0 -- cgit 1.2.3-korg