Potentially fix cache in Jenkinsfile.
This commit is contained in:
parent
714b09ddcb
commit
fe3fcef7a9
1 changed files with 9 additions and 5 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -17,10 +17,10 @@ pipeline {
|
|||
git(url: 'https://github.com/MinecraftForge/MinecraftForge.git', changelog: true)
|
||||
}
|
||||
}
|
||||
stage('buildandtest') {
|
||||
cache(maxCacheSize: 250/*MB*/, caches: [
|
||||
[$class: 'ArbitraryFileCache', excludes: 'log.txt', includes: '**/*', path: '${WORKSPACE}/projects/forge/build/extractRangeMap'] //Cache the rangemap to help speed up builds
|
||||
]){
|
||||
stage('buildandtest') {
|
||||
steps {
|
||||
sh './gradlew ${GRADLE_ARGS} --refresh-dependencies --continue build test'
|
||||
script {
|
||||
|
@ -34,7 +34,11 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('publish') {
|
||||
cache(maxCacheSize: 250/*MB*/, caches: [
|
||||
[$class: 'ArbitraryFileCache', excludes: 'log.txt', includes: '**/*', path: '${WORKSPACE}/projects/forge/build/extractRangeMap'] //Cache the rangemap to help speed up builds
|
||||
]){
|
||||
when {
|
||||
not {
|
||||
changeRequest()
|
||||
|
|
Loading…
Reference in a new issue