From d5510f3133d37b80c0786908e336260a5d75d38a Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Wed, 12 Sep 2018 15:31:10 -0400 Subject: [PATCH] Control docker build with profile Docker build should only be run if docker profile is enabled. Change-Id: I6942c3e59b769053fd47d04fe98f3e4b95ea33dd Issue-ID: CCSDK-558 Signed-off-by: Timoney, Dan (dt5972) --- ms/controllerblueprints/.gitignore | 3 +- ms/controllerblueprints/application/pom.xml | 2 + ms/controllerblueprints/distribution/pom.xml | 90 +++++++++++++++------------- 3 files changed, 53 insertions(+), 42 deletions(-) diff --git a/ms/controllerblueprints/.gitignore b/ms/controllerblueprints/.gitignore index 644e3b492..8cda363d8 100644 --- a/ms/controllerblueprints/.gitignore +++ b/ms/controllerblueprints/.gitignore @@ -20,4 +20,5 @@ **/*versionsBackup **/blackDuckHub* -**/*.jsonld \ No newline at end of file +**/*.jsonld +/target-ide/ diff --git a/ms/controllerblueprints/application/pom.xml b/ms/controllerblueprints/application/pom.xml index 38f81c169..24f4debe0 100644 --- a/ms/controllerblueprints/application/pom.xml +++ b/ms/controllerblueprints/application/pom.xml @@ -198,5 +198,7 @@ + + diff --git a/ms/controllerblueprints/distribution/pom.xml b/ms/controllerblueprints/distribution/pom.xml index 37c0b8448..7a2c67920 100644 --- a/ms/controllerblueprints/distribution/pom.xml +++ b/ms/controllerblueprints/distribution/pom.xml @@ -34,7 +34,10 @@ org.onap.ccsdk.apps controllerblueprints onap/ccsdk-controllerblueprints - + ${https_proxy} + deploy + true + @@ -141,47 +144,52 @@ - - io.fabric8 - docker-maven-plugin - 0.26.1 - false - - - - ${image.name} - - try - ${basedir}/target/docker-stage - - ${project.version} - ${project.version}-STAGING-${maven.build.timestamp} - ${project.docker.latesttag.version} - - - - - true - - - - - - - - - - - push-images - deploy - - build - push - - - - + + + + + docker + + + + io.fabric8 + docker-maven-plugin + 0.26.1 + false + + + + ${image.name} + + try + ${basedir}/target/docker-stage + + ${project.version} + ${project.version}-STAGING-${maven.build.timestamp} + ${project.docker.latesttag.version} + + + + + true + + + + push-images + ${docker.build.phase} + + build + push + + + + + + + + + -- 2.16.6