X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Finclude-raw-integration-deploy-controller-offline.sh;h=dd2ae6df9e101e7c6735b79e436ee396b14a600f;hb=refs%2Ftags%2Frelease%2Fberyllium-sr2;hp=c91f3f301c21ddc9e0b0f1b03b670dfb1f708940;hpb=7ab38774cc70d890273f50da2f3975368cffc2ca;p=releng%2Fbuilder.git diff --git a/jjb/integration/include-raw-integration-deploy-controller-offline.sh b/jjb/integration/include-raw-integration-deploy-controller-offline.sh index c91f3f301..dd2ae6df9 100644 --- a/jjb/integration/include-raw-integration-deploy-controller-offline.sh +++ b/jjb/integration/include-raw-integration-deploy-controller-offline.sh @@ -8,7 +8,7 @@ echo "Clean workspace" rm -rf * echo "Downloading the distribution..." -wget --no-verbose ${ACTUALBUNDLEURL} +wget --progress=dot:mega ${ACTUALBUNDLEURL} echo "Extracting the new controller..." unzip -q ${BUNDLE} @@ -36,7 +36,19 @@ MEMCONF=${WORKSPACE}/${BUNDLEFOLDER}/bin/setenv sed -ie "s/2048m/${CONTROLLERMEM}/g" ${MEMCONF} cat ${MEMCONF} -echo "JDK Version ..." +if [ ${JDKVERSION} == 'openjdk8' ]; then + echo "Setting the JRE Version to 8" + # dynamic_verify does not allow sudo, JAVA_HOME should be enough for karaf start. + # sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64/jre/bin/java + export JAVA_HOME=/usr/lib/jvm/java-1.8.0 +elif [ ${JDKVERSION} == 'openjdk7' ]; then + echo "Setting the JRE Version to 7" + # dynamic_verify does not allow sudo, JAVA_HOME should be enough for karaf start. + # sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/jre/bin/java + export JAVA_HOME=/usr/lib/jvm/java-1.7.0 +fi +readlink -e "${JAVA_HOME}/bin/java" +echo "Default JDK Version, JAVA_HOME should override" java -version echo "Starting controller..."