-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfp-ci-build.sh
executable file
·42 lines (26 loc) · 728 Bytes
/
mfp-ci-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash -v
set -o errexit
set -o xtrace
set -o nounset
# Print debugging info
echo "Printing current env for debugging purposes"
printenv
echo "Printing whoami"
whoami
# Set some local variables
export SCRIPT_DIR=`pwd`
# script executing from CIBuild dir INSIDE of the proj. this is to resolve this.
export MFP_PROJECT=$(cd ..; pwd)
export LOCAL_ANT="/usr/local/bin/ant"
export ANT_DIR=$SCRIPT_DIR/ant_jars
export ANTFILE="${ANT_DIR}/build.xml"
# could use either - prob better to go hostbame
# export LOCAL_MACHINE_IP=$(ifconfig eth0 | grep 'inet\ ' | cut -f2 -d':' | cut -f1 -d' ')
source $SCRIPT_DIR/common-functions.sh
setEnvironment
buildWar
buildAdapters
buildApps
deployWar
deployAdapters
deployApps