summaryrefslogtreecommitdiffstats
path: root/mvn-phase-script.sh
diff options
context:
space:
mode:
authorLadue, David (dl3158) <dl3158@att.com>2017-08-23 11:27:58 -0400
committerLadue, David (dl3158) <dl3158@att.com>2017-08-23 15:29:16 -0400
commit64292319039c0efbb2cfa22b184da10f5f956e8c (patch)
tree4e07c760c46654600afe6f85be44b3cc08b44730 /mvn-phase-script.sh
parent7bf6db4397003fc0f3013d453a12697d58018880 (diff)
dcaegen2 snmptrap seedcode
Initial seed code delivery for snmptrap receiver for support on the gen2dcae platform Issue-ID: DCAEGEN2-55 Change-Id: I87365c2f07ffd55a3c2778d7c05a152818f625f8 Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'mvn-phase-script.sh')
-rw-r--r--mvn-phase-script.sh49
1 files changed, 49 insertions, 0 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
new file mode 100644
index 0000000..6399837
--- /dev/null
+++ b/mvn-phase-script.sh
@@ -0,0 +1,49 @@
+#!/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