Change-Id: Ic6369e120cc256d081ebdd66c5d0d154c86fc73b
Issue-ID: RELENG-4097
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
--- /dev/null
+---
+prelude: >
+ Enable support for OpenJDK17.
+features:
+ - |
+ Add support for the latest version of JDK17 to be used with
+ lf-update-java-alternatives. This allows job to switch between the
+ required version of JDK.
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk"
elif [[ "${SET_JDK_VERSION//[a-zA-Z]/}" = "12" ]]; then
export JAVA_HOME="/usr/lib/jvm/java-12-openjdk"
+ elif [[ "${SET_JDK_VERSION//[a-zA-Z]/}" = "17" ]]; then
+ export JAVA_HOME="/usr/lib/jvm/java-17-openjdk"
else
export JAVA_HOME="/usr/lib/jvm/java-1.${SET_JDK_VERSION//[a-zA-Z:-]/}.0-openjdk"
fi