Use $SETTINGS_FILE to override settings.xml 29/9729/1
authorAndrew Gauld <ag1282@att.com>
Thu, 31 Aug 2017 17:48:43 +0000 (13:48 -0400)
committerAndrew Gauld <ag1282@att.com>
Thu, 31 Aug 2017 17:51:19 +0000 (13:51 -0400)
Change-Id: I1e2cdf98119e0953e986097eb3481706a25cdb5e
Issue-Id: CCSDK-66
Signed-off-by: Andrew Gauld <ag1282@att.com>
mvn-phase-script.sh

index 462ad1a..51d1b28 100755 (executable)
@@ -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