From ac3f029edc6bc8b25ab44666b5408c8929e6ba92 Mon Sep 17 00:00:00 2001 From: Andrew Gauld Date: Thu, 31 Aug 2017 13:48:43 -0400 Subject: Use $SETTINGS_FILE to override settings.xml Change-Id: I1e2cdf98119e0953e986097eb3481706a25cdb5e Issue-Id: CCSDK-66 Signed-off-by: Andrew Gauld --- mvn-phase-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.2.3-korg