Fix problems installing JDK 11
Change-Id: Icd2c7f491f09e09af5ea8937ca4347345e0032e1
diff --git a/jjb/onos/onos-release-build.sh b/jjb/onos/onos-release-build.sh
index b01940a..a076733 100644
--- a/jjb/onos/onos-release-build.sh
+++ b/jjb/onos/onos-release-build.sh
@@ -13,8 +13,11 @@
if [ ${GERRIT_BRANCH} == "master" -o ${GERRIT_BRANCH} == "onos-2.2" ]
then
echo Installing OPEN JDK 11
- sudo update-java-alternatives -s java-1.11.0-openjdk-amd64
- which java
+ curl -L -o jdk.tar.gz -s https://cdn.azul.com/zulu/bin/zulu11.31.11-ca-jdk11.0.3-linux_x64.tar.gz
+ tar xf jdk.tar.gz
+ export JAVA_HOME="`pwd`/zulu11.31.11-ca-jdk11.0.3-linux_x64"
+ PATH="$JAVA_HOME/bin:$PATH"
+ java -version
else
echo Using default JDK
fi