summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-09-12 20:26:58 +0000
committerLusheng Ji <lji@research.att.com>2017-09-12 20:28:36 +0000
commitaad6210043e4eae1879ac8f611c8531a1a3271d9 (patch)
treefe0561c4296a6ad7310aeef1f41a005b1028cf6b
parenta7d0d37bdab8a8d93ceb872219d9397da294dc51 (diff)
Change to call docker build script
Issue-Id: DCAEGEN2-60 Change-Id: Ic6763e7220e4e315ee9141581e75c93a673cf030 Signed-off-by: Lusheng Ji <lji@research.att.com>
-rwxr-xr-xmvn-phase-script.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index 309e8411..9603bb4d 100755
--- a/mvn-phase-script.sh
+++ b/mvn-phase-script.sh
@@ -28,6 +28,10 @@ MVN_PHASE="$2"
PROJECT_ROOT=$(dirname $0)
+if [ -z "$WORKSPACE" ]; then
+ export WORKSPACE="$PROJECT_ROOT"
+fi
+
FQDN="${MVN_PROJECT_GROUPID}.${MVN_PROJECT_ARTIFACTID}"
if [ "$MVN_PROJECT_MODULEID" == "__" ]; then
@@ -114,8 +118,15 @@ install)
deploy)
echo "==> deploy phase script"
# build docker image from Docker file (under root of repo) and push to registry
- build_and_push_docker
-
+ #build_and_push_docker
+ case $MVN_DEPLOYMENT_TYPE in
+ SNAPSHOT)
+ bash docker-build.sh merge
+ ;;
+ STAGING)
+ bash docker-build.sh release
+ ;;
+ esac
;;
*)
echo "==> unprocessed phase"