summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2021-08-09 14:10:24 -0400
committerTaka Cho <takamune.cho@att.com>2021-08-09 14:13:56 -0400
commit1c200701f248240aac226208d048c420fedd9c35 (patch)
treedf2bb13d55fff49ea2a52b51d2fda05b4ad88550
parent2416b2db724a187001830d4573b888f8367b37a4 (diff)
use url resource for docker-tag -- drools-pdp
use groovy url resource from docker repo to identify the tag for docker Issue-ID: POLICY-3378 Change-Id: I1400967096a5b61b89c6298aee7377e2eeaaa47d Signed-off-by: Taka Cho <takamune.cho@att.com>
-rw-r--r--packages/docker/pom.xml22
1 files changed, 4 insertions, 18 deletions
diff --git a/packages/docker/pom.xml b/packages/docker/pom.xml
index 269416ed..cc8d7b90 100644
--- a/packages/docker/pom.xml
+++ b/packages/docker/pom.xml
@@ -52,9 +52,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>
@@ -62,21 +62,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>