From da23b25192b0f2838e27e93b88e05e07756adbb0 Mon Sep 17 00:00:00 2001 From: ezcoxem Date: Tue, 31 Jul 2018 15:54:56 +0100 Subject: Change pom to push new docker image Issue-ID: DMAAP-12 Change-Id: If621d0318a01855c57324b16f56597f10bc812c8 Signed-off-by: eronkeo --- datarouter-prov/pom.xml | 118 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 95 insertions(+), 23 deletions(-) mode change 100644 => 100755 datarouter-prov/pom.xml (limited to 'datarouter-prov') diff --git a/datarouter-prov/pom.xml b/datarouter-prov/pom.xml old mode 100644 new mode 100755 index 07ddc84a..a348c784 --- a/datarouter-prov/pom.xml +++ b/datarouter-prov/pom.xml @@ -33,24 +33,13 @@ datarouter-prov https://github.com/att/DMAAP_DATAROUTER - UTF-8 - 1.8 - 1.8 - ${basedir}/target/ java false - jacoco - ${project.build.directory}/surefire-reports - ${project.build.directory}/coverage-reports/jacoco.exec - ${project.build.directory}/coverage-reports/jacoco-it.exec - true - ${project.version} - https://nexus.onap.org - /content/repositories/snapshots/ - /content/repositories/releases/ - /content/repositories/staging/ /content/sites/site/${project.groupId}/${project.artifactId}/${project.version} + + ${basedir}/target/${artifactId} + onap/dmaap/datarouter-prov @@ -229,6 +218,18 @@ compile + + + + docker + + false + false + false + + + + datarouter-prov @@ -302,18 +303,88 @@ com.spotify docker-maven-plugin - 0.4.11 + ${docker.maven.plugin.version} - onap/dmaap/datarouter-prov + false + ${datarouter.prov.image.name} ${docker.location} docker-hub - https://${docker.registry} ${project.version} latest true + + + / + ${docker.location} + ${project.build.finalName}.jar + + + / + ${project.build.directory} + **/** + + + + + build-image + install + + build + + + ${skip.docker.build} + + + + tag-image-project-version + install + + tag + + + ${datarouter.prov.image.name} + ${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}:${project.version} + ${skip.docker.push} + + + + tag-image-latest + install + + tag + + + ${datarouter.prov.image.name} + ${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}:latest + ${skip.docker.push} + + + + push-image-latest + deploy + + push + + + ${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}:${project.version} + ${skip.docker.push} + + + + push-image + deploy + + push + + + ${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}:latest + ${skip.docker.push} + + + maven-resources-plugin @@ -473,6 +544,7 @@ html xml + @@ -481,7 +553,7 @@ 1.6.7 true - ${nexusproxy} + ${onap.nexus.dockerregistry.daily} 176c31dfe190a ecomp-staging @@ -550,22 +622,22 @@ ecomp-releases DR Release Repository - ${nexusproxy}${releaseNexusPath} + ${onap.nexus.url}${releaseNexusPath} ecomp-snapshots DR Snapshot Repository - ${nexusproxy}${snapshotNexusPath} + ${onap.nexus.url}${snapshotNexusPath} ecomp-site - dav:${nexusproxy}${sitePath} + dav:${onap.nexus.url}${sitePath} onap-plugin-snapshots - https://nexus.onap.org/content/repositories/snapshots/ + ${onap.nexus.url}${snapshotNexusPath} - \ No newline at end of file + -- cgit 1.2.3-korg