Update Jenkins pipeline

- add JDK 9 stage (only unit tests)
- update JDK 10 stage to only run unit tests
This commit is contained in:
Vedran Pavic
2018-11-22 23:11:31 +01:00
parent 3bfdb9be93
commit 640bee3fc4

22
Jenkinsfile vendored
View File

@@ -28,14 +28,32 @@ try {
}
}
},
jdk9: {
stage('JDK 9') {
timeout(time: 45, unit: 'MINUTES') {
node {
checkout scm
try {
withEnv(["JAVA_HOME=${tool 'jdk9'}"]) {
sh './gradlew clean test --no-daemon --refresh-dependencies'
}
}
catch (e) {
currentBuild.result = 'FAILED: jdk9'
throw e
}
}
}
}
},
jdk10: {
stage('JDK 10') {
timeout(time: 45, unit: 'MINUTES') {
node('ubuntu1804') {
node {
checkout scm
try {
withEnv(["JAVA_HOME=${tool 'jdk10'}"]) {
sh './gradlew clean test integrationTest --no-daemon --refresh-dependencies'
sh './gradlew clean test --no-daemon --refresh-dependencies'
}
}
catch (e) {