2
0
Эх сурвалжийг харах

Add JDK 11 to Jenkins

Fixes: gh-5860
Josh Cummings 6 жил өмнө
parent
commit
e1c7dd6480
1 өөрчлөгдсөн 15 нэмэгдсэн , 0 устгасан
  1. 15 0
      Jenkinsfile

+ 15 - 0
Jenkinsfile

@@ -81,6 +81,21 @@ try {
 				}
 			}
 		}
+	},
+	jdk11: {
+		stage('JDK 11') {
+			node {
+				checkout scm
+				try {
+					withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) {
+						sh "./gradlew clean test --refresh-dependencies --no-daemon --stacktrace"
+					}
+				} catch(Exception e) {
+					currentBuild.result = 'FAILED: jdk11'
+					throw e
+				}
+			}
+		}
 	}
 
 	if(currentBuild.result == 'SUCCESS') {