Check openjdk $VERSION before setting $JAVA_HOME 05/14105/1
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 9 Jan 2019 02:14:44 +0000 (12:14 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 9 Jan 2019 02:28:49 +0000 (12:28 +1000)
commit350759eaf5a6e80c58def8931b9bde94896400a1
treea412b029ec184aad68c73d7be782a3a33bf7e5fe
parenta68a9c7812619268c494873a4e4c358f2a7b44ff
Check openjdk $VERSION before setting $JAVA_HOME

The default version of openjdk installed is openjdk-8 which
is set through the Jenkins job.

For CentOS we are installing jdk-11 and jdk-10 under /opt. So
we need to check the version of openjdk for the job to pick up
the right version of JDK.

Issue: RELENG-1454
Change-Id: I19d77c509c90bca5fea1af53dacc35772c7ac939
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
shell/update-java-alternatives.sh