diff options
author | Taka Cho <takamune.cho@att.com> | 2021-08-10 10:48:40 -0400 |
---|---|---|
committer | Taka Cho <takamune.cho@att.com> | 2021-08-10 10:49:09 -0400 |
commit | 9b0e30ec0242f300acc08bbff4409e0bd21392d7 (patch) | |
tree | 6387e7c7970befe0658694316e37ed914dc34150 /controlloop/packages/docker-controlloop | |
parent | 1d89d390bf0ba05c7953f19d1dd4c48cebed7b24 (diff) |
use url resource for docker-tag -- drools-app
use groovy url resource from docker repo
to identify the tag for docker
Issue-ID: POLICY-3378
Change-Id: I3cffc1a95b49fc8d1d16183b2721c8c9a2994cae
Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'controlloop/packages/docker-controlloop')
-rw-r--r-- | controlloop/packages/docker-controlloop/pom.xml | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/controlloop/packages/docker-controlloop/pom.xml b/controlloop/packages/docker-controlloop/pom.xml index bb2392c03..e285c11ec 100644 --- a/controlloop/packages/docker-controlloop/pom.xml +++ b/controlloop/packages/docker-controlloop/pom.xml @@ -49,9 +49,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> @@ -59,21 +59,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: ' + 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> |