mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 09:12:14 +00:00
Jenkinsfile add --refresh-dependencies JDK specific builds
This commit is contained in:
parent
d9d9879909
commit
2856f93140
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -58,7 +58,7 @@ try {
|
|||||||
checkout scm
|
checkout scm
|
||||||
try {
|
try {
|
||||||
withEnv(["JAVA_HOME=${ tool 'jdk9' }"]) {
|
withEnv(["JAVA_HOME=${ tool 'jdk9' }"]) {
|
||||||
sh "./gradlew clean test --no-daemon --stacktrace"
|
sh "./gradlew clean test --refresh-dependencies --no-daemon --stacktrace"
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
currentBuild.result = 'FAILED: jdk9'
|
currentBuild.result = 'FAILED: jdk9'
|
||||||
@ -73,7 +73,7 @@ try {
|
|||||||
checkout scm
|
checkout scm
|
||||||
try {
|
try {
|
||||||
withEnv(["JAVA_HOME=${ tool 'jdk10' }"]) {
|
withEnv(["JAVA_HOME=${ tool 'jdk10' }"]) {
|
||||||
sh "./gradlew clean test --no-daemon --stacktrace"
|
sh "./gradlew clean test --refresh-dependencies --no-daemon --stacktrace"
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
currentBuild.result = 'FAILED: jdk10'
|
currentBuild.result = 'FAILED: jdk10'
|
||||||
@ -88,7 +88,7 @@ try {
|
|||||||
checkout scm
|
checkout scm
|
||||||
try {
|
try {
|
||||||
withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) {
|
withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) {
|
||||||
sh "./gradlew clean test --no-daemon --stacktrace"
|
sh "./gradlew clean test --refresh-dependencies --no-daemon --stacktrace"
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
currentBuild.result = 'FAILED: jdk11'
|
currentBuild.result = 'FAILED: jdk11'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user