X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=packages%2Fdocker%2Fpom.xml;h=b2e72dc6435b1b3a2162eb6c1a86653d2c94c301;hb=37ad11c5660d017aace257bf7f5bd03c02f26bdd;hp=02b1d871bfdef59cc471589050327587d8394bc1;hpb=87102d3e68569b81709633935dbd31070ce24a8b;p=policy%2Fengine.git diff --git a/packages/docker/pom.xml b/packages/docker/pom.xml index 02b1d871b..b2e72dc64 100644 --- a/packages/docker/pom.xml +++ b/packages/docker/pom.xml @@ -3,6 +3,7 @@ ONAP Policy Engine - Docker files ================================================================================ Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + Modifications Copyright (C) 2019 Bell Canada. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -18,54 +19,150 @@ ============LICENSE_END========================================================= --> - + - 4.0.0 + 4.0.0 - - org.onap.policy.engine - packages - 1.2.0-SNAPSHOT - + + org.onap.policy.engine + packages + 1.6.3 + - org.onap.policy.engine - docker - 1.2.0-SNAPSHOT - pom - Policy Engine - Docker build - ONAP Policy Docker Build + docker + pom + Policy Engine - Docker build + ONAP Policy Docker Build - - https://nexus.onap.org - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - get-target-version - prepare-package - - exec - - - - - echo - ${project.build.directory} - - ${project.version} - - ${project.build.directory}/version - - - - - + + https://nexus.onap.org + UTF-8 + UTF-8 + ${project.version} + false + false + false + nexus3.onap.org:10001 + nexus3.onap.org:10003 + yyyyMMdd'T'HHmm + + + ${project.artifactId}-${project.version} + + + org.codehaus.groovy.maven + gmaven-plugin + 1.0 + + + validate + + 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'] + } + + + + + + + io.fabric8 + docker-maven-plugin + + true + 1.23 + ${docker.pull.registry} + ${docker.push.registry} + + + onap/policy-pe + + try + Dockerfile + + ${project.version} + ${project.version}-${maven.build.timestamp} + ${project.docker.latest.minmax.tag.version} + + + + + + + org.onap.policy.engine:install + + . + install.zip + + + + + + + + + + + clean-images + pre-clean + + remove + + + true + + + + generate-images + generate-sources + + build + + + + push-images + deploy + + build + push + + + onap/policy-pe + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + + + ${project.groupId} + install + ${project.version} + zip + +