Add missing withCredentials in Jenkinsfile

This commit is contained in:
Rob Winch 2020-11-17 09:28:13 -06:00
parent 1bac5498dd
commit 5948f492f5

2
Jenkinsfile vendored
View File

@ -81,9 +81,11 @@ try {
checkout scm
sh "git clean -dfx"
try {
withCredentials([ARTIFACTORY_CREDENTIALS]) {
withEnv(["JAVA_HOME=${ tool 'jdk9' }"]) {
sh "./gradlew clean test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace"
}
}
} catch(Exception e) {
currentBuild.result = 'FAILED: jdk9'
throw e