summaryrefslogtreecommitdiffstats
path: root/packages/policy-distribution-docker/pom.xml
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2021-08-09 14:29:47 -0400
committerTaka Cho <takamune.cho@att.com>2021-08-09 14:30:18 -0400
commit7fdd0a9a2eec02bf499663eff8fd7794b007c168 (patch)
tree6e17afe74c612214162fd6c63c63e4df3ec1e7c6 /packages/policy-distribution-docker/pom.xml
parent88cf6d7bea81d0e7239593cf37aa312f006cd7e9 (diff)
use url resource for docker-tag -- distribution
use groovy url resource from docker repo to identify the tag for docker Issue-ID: POLICY-3378 Change-Id: Ia2dcb8c3564fcfc7199ce1cda3dd26b7b684cc94 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'packages/policy-distribution-docker/pom.xml')
-rw-r--r--packages/policy-distribution-docker/pom.xml22
1 files changed, 4 insertions, 18 deletions
diff --git a/packages/policy-distribution-docker/pom.xml b/packages/policy-distribution-docker/pom.xml
index 8f3e52a4..6e787b8e 100644
--- a/packages/policy-distribution-docker/pom.xml
+++ b/packages/policy-distribution-docker/pom.xml
@@ -50,9 +50,9 @@
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
- <groupId>org.codehaus.groovy.maven</groupId>
- <artifactId>gmaven-plugin</artifactId>
- <version>1.0</version>
+ <groupId>org.codehaus.gmaven</groupId>
+ <artifactId>groovy-maven-plugin</artifactId>
+ <version>2.1.1</version>
<executions>
<execution>
<phase>validate</phase>
@@ -60,21 +60,7 @@
<goal>execute</goal>
</goals>
<configuration>
- <source>
- 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']
- }
- </source>
+ <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
</configuration>
</execution>
</executions>