Set credentials to write build cache

Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
This commit is contained in:
Eduard Heimbuch
2024-01-16 18:12:36 +01:00
parent ea60b68cec
commit a57e478e47
2 changed files with 10 additions and 2 deletions

8
Jenkinsfile vendored
View File

@@ -55,8 +55,12 @@ pipeline {
stage('Build') {
steps {
// build without tests
gradle "-xtest build"
withCredentials([
usernamePassword(credentialsId: 'scmm-gradle-build-cache', usernameVariable: 'GRADLE_BUILD_CACHE_USER', passwordVariable: 'GRADLE_BUILD_CACHE_PASSWORD')
]) {
// build without tests
gradle "-xtest build"
}
}
}

View File

@@ -90,5 +90,9 @@ buildCache {
useExpectContinue = true
url = 'https://build-cache.scm-manager.org/cache/'
push = true
credentials {
username = System.getenv('GRADLE_BUILD_CACHE_USER')
password = System.getenv('GRADLE_BUILD_CACHE_PASSWORD')
}
}
}