mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-12 07:02:13 +00:00
Add JDK 10 & 11 Builds
Issue: gh-5160
This commit is contained in:
parent
b1d013e8f0
commit
7d4e7bf42d
32
Jenkinsfile
vendored
32
Jenkinsfile
vendored
@ -76,11 +76,41 @@ try {
|
|||||||
sh "./gradlew clean test --no-daemon --stacktrace"
|
sh "./gradlew clean test --no-daemon --stacktrace"
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
currentBuild.result = 'FAILED: snapshots'
|
currentBuild.result = 'FAILED: jdk9'
|
||||||
throw e
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(currentBuild.result == 'SUCCESS') {
|
if(currentBuild.result == 'SUCCESS') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user