diff options
author | Lusheng Ji <lji@research.att.com> | 2017-08-22 21:44:29 -0700 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2017-08-22 21:45:07 -0700 |
commit | 487c0cc16cdca19c7014898eab240c0e3c913b85 (patch) | |
tree | 148bad24f21ea8ad8a54ef89971b6c42ba645f34 /mvn-phase-script.sh | |
parent | 3c72e343c8d06159c760d26eb7b1264882b599a4 (diff) |
initial files for seedcode push
Change-Id: I92bc8df6c464d981f082dbf7fabd7906e862c9c0
Issue-Id: DCAEGEN2-73
Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'mvn-phase-script.sh')
-rwxr-xr-x | mvn-phase-script.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh new file mode 100755 index 00000000..904c74a7 --- /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 + |