From 39a5bfe5f3174dc185806c9e7e6b26ab56d1cfd3 Mon Sep 17 00:00:00 2001 From: Lusheng Ji Date: Tue, 22 Aug 2017 21:34:04 -0700 Subject: initial files for seedcode push Change-Id: I2db9713e1975a5d808cb6a22d119be2615854ede Issue-Id: DCAEGEN2-73 Signed-off-by: Lusheng Ji --- mvn-phase-script.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 mvn-phase-script.sh (limited to 'mvn-phase-script.sh') diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh new file mode 100755 index 0000000..904c74a --- /dev/null +++ b/mvn-phase-script.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +echo "running script: [$0] for module [$1] at stage [$2]" + +echo "=> Prepare environment " +#env + +TIMESTAMP=$(date +%C%y%m%dT%H%M%S) +export BUILD_NUMBER="${TIMESTAMP}" + +# expected environment variables +if [ -z "${MVN_NEXUSPROXY}" ]; then + echo "MVN_NEXUSPROXY environment variable not set. Cannot proceed" + exit +fi +MVN_NEXUSPROXY_HOST=$(echo $MVN_NEXUSPROXY |cut -f3 -d'/' | cut -f1 -d':') + + +# use the version text detect which phase we are in in LF CICD process: verify, merge, or (daily) release + +# mvn phase in life cycle +MVN_PHASE="$2" + +case $MVN_PHASE in +clean) + echo "==> clean phase script" + ;; +generate-sources) + echo "==> generate-sources phase script" + ;; +compile) + echo "==> compile phase script" + ;; +test) + echo "==> test phase script" + ;; +package) + echo "==> package phase script" + ;; +install) + echo "==> install phase script" + ;; +deploy) + echo "==> deploy phase script" + ;; +*) + echo "==> unprocessed phase" + ;; +esac + -- cgit 1.2.3-korg