diff options
author | Taka Cho <takamune.cho@att.com> | 2021-08-09 16:12:04 -0400 |
---|---|---|
committer | Taka Cho <takamune.cho@att.com> | 2021-08-09 16:12:32 -0400 |
commit | d4f7ee836b055877cdd299623b6a9e9f7e8ccb26 (patch) | |
tree | 2d921347cc9f01abf8346a3b8988ddbee11497aa /packages/apex-pdp-docker | |
parent | 0ed6c16727aa92c93965a7da756536b113b262c8 (diff) |
use url resource for docker-tag -- apex
use groovy url resource from docker repo
to identify the tag for docker
Issue-ID: POLICY-3378
Change-Id: I73be74f19d0d39912676d839c99f918fdfcf2078
Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'packages/apex-pdp-docker')
-rw-r--r-- | packages/apex-pdp-docker/pom.xml | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/packages/apex-pdp-docker/pom.xml b/packages/apex-pdp-docker/pom.xml index b6fbe30df..f83755708 100644 --- a/packages/apex-pdp-docker/pom.xml +++ b/packages/apex-pdp-docker/pom.xml @@ -46,9 +46,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> @@ -56,21 +56,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> |