Kaynağa Gözat

Add JDK 10 to Jenkins

Fixes: gh-5860
Josh Cummings 6 yıl önce
ebeveyn
işleme
adb9f4e34b
1 değiştirilmiş dosya ile 15 ekleme ve 0 silme
  1. 15 0
      Jenkinsfile

+ 15 - 0
Jenkinsfile

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