Skip to content

Commit 5948f49

Browse files
committed
Add missing withCredentials in Jenkinsfile
1 parent 1bac549 commit 5948f49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Jenkinsfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ try {
8181
checkout scm
8282
sh "git clean -dfx"
8383
try {
84-
withEnv(["JAVA_HOME=${ tool 'jdk9' }"]) {
85-
sh "./gradlew clean test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace"
84+
withCredentials([ARTIFACTORY_CREDENTIALS]) {
85+
withEnv(["JAVA_HOME=${ tool 'jdk9' }"]) {
86+
sh "./gradlew clean test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace"
87+
}
8688
}
8789
} catch(Exception e) {
8890
currentBuild.result = 'FAILED: jdk9'

0 commit comments

Comments
 (0)