mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-08 16:42:10 +01:00
Set credentials to write build cache
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user