From 3406b48e1526dd7723f534d8d36ad183b01cbd06 Mon Sep 17 00:00:00 2001 From: liangke Date: Mon, 25 Sep 2017 15:09:28 +0800 Subject: Add staging maven plugin in vio pom 1 push source code file to staging repository 2 push staging image Change-Id: Icebcaba5f5f7e68b869015eb028de687eca7b624 Issue-Id: MULTICLOUD-107 Signed-off-by: liangke --- pom.xml | 52 +-------------------------------------------- vio/docker/build_image.sh | 6 ++++-- vio/pom.xml | 54 +---------------------------------------------- 3 files changed, 6 insertions(+), 106 deletions(-) diff --git a/pom.xml b/pom.xml index 4c4cd53..bdbc159 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ 4.0.0 org.onap.multicloud.openstack.vmware multicloud-vio - 1.1.0-SNAPSHOT + 1.0.0-SNAPSHOT pom multicloud-opentack-vmware multicloud vio @@ -32,29 +32,7 @@ UTF-8 UTF-8 https://nexus.onap.org - /content/sites/site/org/onap/multicloud/openstack/vmware/${project.artifactId/${project.version} - - - - ecomp-site - dav:${nexusproxy}${sitePath} - - ecomp-releases - ECOMP Release Repository - ${nexusproxy}/content/repositories/releases/ - - - ecomp-staging - ECOMP Staging Repository - ${nexusproxy}/content/repositories/staging/ - - - ecomp-snapshots - ECOMP Snapshot Repository - ${nexusproxy}/content/repositories/snapshots/ - - @@ -68,34 +46,6 @@ ecomp-staging - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.4 - - false - org.umlgraph.doclet.UmlGraphDoc - - org.umlgraph - umlgraph - 5.6 - - -views - true - - - - org.apache.maven.plugins - maven-site-plugin - 3.6 - - - org.apache.maven.wagon - wagon-webdav-jackrabbit - 2.10 - - - diff --git a/vio/docker/build_image.sh b/vio/docker/build_image.sh index b1e691b..ff2fbdf 100755 --- a/vio/docker/build_image.sh +++ b/vio/docker/build_image.sh @@ -7,6 +7,7 @@ cd ${DOCKER_BUILD_DIR} BUILD_ARGS="--no-cache" ORG="onap" VERSION="1.0.0-SNAPSHOT" +STAGING="1.0.0-STAGING" PROJECT="multicloud" IMAGE="vio" DOCKER_REPOSITORY="nexus3.onap.org:10003" @@ -21,14 +22,15 @@ fi function build_image { echo "Start build docker image: ${IMAGE_NAME}" - docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest . + docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest -t ${IMAGE_NAME}:${STAGING} . } function push_image { echo "Start push docker image: ${IMAGE_NAME}" docker push ${IMAGE_NAME}:${VERSION} docker push ${IMAGE_NAME}:latest -} + docker push ${IMAGE_NAME}:${STAGING} +} build_image push_image diff --git a/vio/pom.xml b/vio/pom.xml index f12576f..428832b 100644 --- a/vio/pom.xml +++ b/vio/pom.xml @@ -24,7 +24,7 @@ 4.0.0 org.onap.multicloud.openstack.vmware multicloud-vio - 1.1.0-SNAPSHOT + 1.0.0-SNAPSHOT pom multicloud-opentack-vmware multicloud vio @@ -33,30 +33,7 @@ UTF-8 UTF-8 https://nexus.onap.org - /content/sites/site/org/onap/multicloud/openstack/vmware/${project.artifactId/${project.version} - - - - ecomp-site - dav:${nexusproxy}${sitePath} - - ecomp-releases - ECOMP Release Repository - ${nexusproxy}/content/repositories/releases/ - - - ecomp-staging - ECOMP Staging Repository - ${nexusproxy}/content/repositories/staging/ - - - ecomp-snapshots - ECOMP Snapshot Repository - ${nexusproxy}/content/repositories/snapshots/ - - - @@ -88,35 +65,6 @@ ecomp-staging - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.4 - - false - org.umlgraph.doclet.UmlGraphDoc - - org.umlgraph - umlgraph - 5.6 - - -views - true - - - - org.apache.maven.plugins - maven-site-plugin - 3.6 - - - org.apache.maven.wagon - wagon-webdav-jackrabbit - 2.10 - - - - -- cgit 1.2.3-korg