From 477b30cdedfad3bbb9f7730b58e95bf5433109ad Mon Sep 17 00:00:00 2001 From: Taka Cho Date: Mon, 9 Aug 2021 14:35:06 -0400 Subject: use url resource for docker-tag -- api use groovy url resource from docker repo to identify the tag for docker Issue-ID: POLICY-3378 Change-Id: Ic16e0ba2edebb179f20366247aa848a1ea06d355 Signed-off-by: Taka Cho --- packages/policy-api-docker/pom.xml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'packages/policy-api-docker') diff --git a/packages/policy-api-docker/pom.xml b/packages/policy-api-docker/pom.xml index 1d500b21..e63c755d 100644 --- a/packages/policy-api-docker/pom.xml +++ b/packages/policy-api-docker/pom.xml @@ -49,9 +49,9 @@ ${project.artifactId}-${project.version} - org.codehaus.groovy.maven - gmaven-plugin - 1.0 + org.codehaus.gmaven + groovy-maven-plugin + 2.1.1 validate @@ -59,21 +59,7 @@ execute - - println 'Project version: ' + project.properties['dist.project.version'] - if (project.properties['dist.project.version'] != null) { - def versionArray = project.properties['dist.project.version'].split('-') - def minMaxVersionArray = versionArray[0].tokenize('.') - if (project.properties['dist.project.version'].endsWith("-SNAPSHOT")) { - project.properties['project.docker.latest.minmax.tag.version'] = - minMaxVersionArray[0] + "." + minMaxVersionArray[1] + "-SNAPSHOT-latest" - } else { - project.properties['project.docker.latest.minmax.tag.version'] = - minMaxVersionArray[0] + "." + minMaxVersionArray[1] + "-STAGING-latest" - } - println 'New tag for docker: ' + project.properties['project.docker.latest.minmax.tag.version'] - } - + https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy -- cgit 1.2.3-korg