Add artifactory credentials to build environment

This commit is contained in:
Joe Grandja 2020-12-11 11:00:37 -05:00
parent f9f15227d8
commit b6932ed25e

3
Jenkinsfile vendored
View File

@ -32,7 +32,8 @@ try {
checkout scm checkout scm
sh "git clean -dfx" sh "git clean -dfx"
try { try {
withCredentials([GRADLE_ENTERPRISE_CACHE_USER, withCredentials([ARTIFACTORY_CREDENTIALS,
GRADLE_ENTERPRISE_CACHE_USER,
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) { GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) {
withEnv([jdkEnv(), withEnv([jdkEnv(),
"GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}", "GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}",