summaryrefslogtreecommitdiffstats
path: root/jjb/scripts/maven_push_functions.sh
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2016-10-24 12:52:40 -0700
committerAndrew Grimberg <agrimberg@linuxfoundation.org>2016-10-24 12:52:40 -0700
commit0b2640d588cc6ff205bb94036cbc3fcb4b604aa0 (patch)
treed64534a22630bc7431ef1e4e10f985bf24b8440e /jjb/scripts/maven_push_functions.sh
parent7033cb8235cc8ab08239c6a5fda216dee659655c (diff)
Don't forcibly hardcode maven location
It's bad form to hard code the path to maven in any of the build scripts. Doing so makes it difficult to switch back to using the dynamically installed maven system which makes the builds more flexible. Change-Id: Ide4e595c9e9f561bb404c2491e528b3129e2ecca Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Diffstat (limited to 'jjb/scripts/maven_push_functions.sh')
-rw-r--r--jjb/scripts/maven_push_functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/scripts/maven_push_functions.sh b/jjb/scripts/maven_push_functions.sh
index 5687a562e..564c6ef37 100644
--- a/jjb/scripts/maven_push_functions.sh
+++ b/jjb/scripts/maven_push_functions.sh
@@ -5,7 +5,7 @@ echo "* STARTING PUSH OF PACKAGES TO REPOS"
echo "* NOTHING THAT HAPPENS BELOW THIS POINT IS RELATED TO BUILD FAILURE"
echo "*******************************************************************"
-MVN="/opt/apache/maven/bin/mvn"
+[ "$MVN" ] || MVN="/opt/apache/maven/bin/mvn"
GROUP_ID="io.fd.${PROJECT}"
BASEURL="${NEXUSPROXY}/content/repositories/fd.io."
BASEREPOID='fdio-'