Migrate to jdk11

Set java-version with update-java-alternatives

Issue-ID: CIMAN-33 IT-20226
Change-Id: I0cab91778350093845a4e938e5b7e2c0bf301d53
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml
index 60f1ad6..da5dfdc 100644
--- a/jjb/global-templates-java.yaml
+++ b/jjb/global-templates-java.yaml
@@ -520,6 +520,7 @@
     project-type: freestyle
     node: '{build-node}'
     disabled: '{disabled}'
+    java-version: openjdk8
     properties:
       - infra-properties:
           build-days-to-keep: '{build-days-to-keep}'
@@ -555,6 +556,9 @@
 
     builders:
       - lf-infra-pre-build
+      - lf-update-java-alternatives:
+          java-version: "{java-version}"
+
       - provide-maven-settings:
           global-settings-file: 'global-settings'
           settings-file: '{mvn-settings}'