3 echo "running script: [$0] for module [$1] at stage [$2]"
5 echo "=> Prepare environment "
8 TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
9 export BUILD_NUMBER="${TIMESTAMP}"
11 # expected environment variables
12 if [ -z "${MVN_NEXUSPROXY}" ]; then
13 echo "MVN_NEXUSPROXY environment variable not set. Cannot proceed"
16 MVN_NEXUSPROXY_HOST=$(echo $MVN_NEXUSPROXY |cut -f3 -d'/' | cut -f1 -d':')
19 # use the version text detect which phase we are in in LF CICD process: verify, merge, or (daily) release
21 # mvn phase in life cycle
26 echo "==> clean phase script"
29 echo "==> generate-sources phase script"
32 echo "==> compile phase script"
35 echo "==> test phase script"
38 echo "==> package phase script"
41 echo "==> install phase script"
44 echo "==> deploy phase script"
47 echo "==> unprocessed phase"