summaryrefslogtreecommitdiffstats
path: root/mvn-phase-script.sh
diff options
context:
space:
mode:
authorAndrew Gauld <ag1282@att.com>2017-08-31 13:48:43 -0400
committerAndrew Gauld <ag1282@att.com>2017-08-31 13:51:19 -0400
commitac3f029edc6bc8b25ab44666b5408c8929e6ba92 (patch)
treec504702acfddd428e3b9ab548c9cb364201685d1 /mvn-phase-script.sh
parent6ea7992556679349a3274c67f16639fc2c13445e (diff)
Use $SETTINGS_FILE to override settings.xml
Change-Id: I1e2cdf98119e0953e986097eb3481706a25cdb5e Issue-Id: CCSDK-66 Signed-off-by: Andrew Gauld <ag1282@att.com>
Diffstat (limited to 'mvn-phase-script.sh')
-rwxr-xr-xmvn-phase-script.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index 462ad1a..51d1b28 100755
--- a/mvn-phase-script.sh
+++ b/mvn-phase-script.sh
@@ -97,7 +97,7 @@ deploy)
set +x
hostport=$(echo $1 | cut -f3 -d /)
host=$(echo $hostport | cut -f1 -d:)
- settings=$HOME/.m2/settings.xml
+ settings=${SETTINGS_FILE:-$HOME/.m2/settings.xml}
( echo machine $host; echo login $(xpath -q -e "//servers/server[id='$MVN_SERVER_ID']/username/text()" $settings); echo password $(xpath -q -e "//servers/server[id='$MVN_SERVER_ID']/password/text()" $settings) ) >$HOME/.netrc
chmod 600 $HOME/.netrc
set -x