mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-07 19:22:14 +00:00
Add missing withCredentials in Jenkinsfile
This commit is contained in:
parent
1bac5498dd
commit
5948f492f5
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -81,8 +81,10 @@ try {
|
|||||||
checkout scm
|
checkout scm
|
||||||
sh "git clean -dfx"
|
sh "git clean -dfx"
|
||||||
try {
|
try {
|
||||||
withEnv(["JAVA_HOME=${ tool 'jdk9' }"]) {
|
withCredentials([ARTIFACTORY_CREDENTIALS]) {
|
||||||
sh "./gradlew clean test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace"
|
withEnv(["JAVA_HOME=${ tool 'jdk9' }"]) {
|
||||||
|
sh "./gradlew clean test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
currentBuild.result = 'FAILED: jdk9'
|
currentBuild.result = 'FAILED: jdk9'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user