X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fvpp%2Finclude-raw-vpp-build.sh;h=e5a9be3f118ddd7b32e71f75a4e4cf1d73b471c5;hb=d8d17c7448a7b9c59b4381951e25a12c7cdd1cd0;hp=d4b6d748fc83812465e8abf88ad0536df298aa13;hpb=1dc3a2e512f838cf65b1cf5a05b819d850aa68cf;p=ci-management.git diff --git a/jjb/vpp/include-raw-vpp-build.sh b/jjb/vpp/include-raw-vpp-build.sh index d4b6d748f..e5a9be3f1 100644 --- a/jjb/vpp/include-raw-vpp-build.sh +++ b/jjb/vpp/include-raw-vpp-build.sh @@ -11,18 +11,11 @@ else echo $CCACHE_DIR does not exist. This must be a new slave. fi -SUPPORTED="ubuntu1404 ubuntu1604 centos7" -declare -A DIST_TARGET -DIST_TARGET=( - [ubuntu1404]=install-deb - [ubuntu1604]=install-deb - [centos7]=install-rpm -) -if [[ ! ${SUPPORTED[*]} =~ ${OS} ]] -then - echo "Unrecognized OS: ${OS}. Please edit: https://gerrit.fd.io/r/gitweb?p=ci-management.git;a=blob;f=jjb/vpp/include-raw-vpp-build.sh;hb=HEAD" - exit 1 +# Make sure we are starting on java-7. This catches bugs in the +# vpp build system that can occur on Ubuntu 14.04 when a user may +# have both java-7 and java-8 installed. +if [ ${OS} == ubuntu1404 ];then + sudo update-java-alternatives /usr/lib/jvm/java-1.7.0-openjdk-amd64 fi -cd build-root/ -./bootstrap.sh -make PLATFORM=vpp V=0 TAG=vpp ${DIST_TARGET[${OS}]} \ No newline at end of file + +build-root/vagrant/build.sh