Add JDK 10 & 11 Builds

Issue: gh-5160
This commit is contained in:
Rob Winch 2018-03-27 09:31:13 -05:00
parent b1d013e8f0
commit 7d4e7bf42d
1 changed files with 31 additions and 1 deletions

32
Jenkinsfile vendored
View File

@ -76,7 +76,37 @@ try {
sh "./gradlew clean test --no-daemon --stacktrace"
}
} catch(Exception e) {
currentBuild.result = 'FAILED: snapshots'
currentBuild.result = 'FAILED: jdk9'
throw e
}
}
}
},
jdk10: {
stage('JDK 10') {
node {
checkout scm
try {
withEnv(["JAVA_HOME=${ tool 'jdk10' }"]) {
sh "./gradlew clean test --no-daemon --stacktrace"
}
} catch(Exception e) {
currentBuild.result = 'FAILED: jdk10'
throw e
}
}
}
},
jdk11: {
stage('JDK 11') {
node {
checkout scm
try {
withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) {
sh "./gradlew clean test --no-daemon --stacktrace"
}
} catch(Exception e) {
currentBuild.result = 'FAILED: jdk11'
throw e
}
}