ソースを参照

Add JDK 12 to Jenkins Build

Fixes: gh-6774
Josh Cummings 6 年 前
コミット
fc6b66fdb3
1 ファイル変更15 行追加0 行削除
  1. 15 0
      Jenkinsfile

+ 15 - 0
Jenkinsfile

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