summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>2016-10-28 18:08:29 -0500
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>2016-10-28 18:08:29 -0500
commit90732586e00d71663e0392557e5e91ebc7eb0ceb (patch)
treebcf5c26998216d1786cf8d3613baba41b52cd9f4
parent9004084234eff2e197542346ed6c5c998410c68d (diff)
Make dynamic Maven work on Ubuntu 14.04
The command realpath is not installed on Ubuntu 14.04 by default. It is causing an extraneous path check which if the path doesn't exist the build would fail anyway. Change-Id: If38eb993ed5a9e3517fe6b85f8eb5bce49b6bbce Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
-rw-r--r--jjb/nsh_sfc/include-raw-nsh_sfc-build.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/jjb/nsh_sfc/include-raw-nsh_sfc-build.sh b/jjb/nsh_sfc/include-raw-nsh_sfc-build.sh
index 04383f236..5faff2868 100644
--- a/jjb/nsh_sfc/include-raw-nsh_sfc-build.sh
+++ b/jjb/nsh_sfc/include-raw-nsh_sfc-build.sh
@@ -30,10 +30,11 @@ sha1sum $0
if [ -n ${MVN} ]
then
- export MAVEN_HOME=$(realpath $(dirname ${MVN})/..)
+ export MAVEN_HOME=$(dirname ${MVN})/..
else
export MAVEN_HOME="/opt/apache/maven/"
fi
+
export PATH=${MAVEN_HOME}/bin:${PATH}
scripts/ci/verify.sh