Java 8 for CSIT jobs.
[releng/builder.git] / jjb / integration / include-raw-integration-deploy-controller.sh
index 5aabfb41f96e64f783772c5caa9e985faacd9b82..0b14414017ef9e61dcb57b131af6dd94ac59c535 100644 (file)
@@ -13,6 +13,19 @@ fi
 
 cat > ${WORKSPACE}/deploy-controller-script.sh <<EOF
 
+if [ ${JDKVERSION} == 'openjdk8' ]; then
+    echo "Setting the JDK Version to 8"
+    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-openjdk-1.8.0.60-2.b27.el7_1.x86_64
+    java -version
+fi
+if [ ${JDKVERSION} == 'openjdk7' ]; then
+    echo "Setting the JDK Version to 7"
+    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-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64
+    java -version
+fi
+
 echo "Changing to /tmp"
 cd /tmp
 
@@ -43,6 +56,9 @@ cat \${MEMCONF}
 echo "Listing all open ports on controller system"
 netstat -natu
 
+echo "JDK Version ..."
+java -version
+
 EOF
 
 for i in `seq 1 ${NUM_ODL_SYSTEM}`