Potentially fix cache in Jenkinsfile.

This commit is contained in:
LexManos 2018-11-12 20:13:59 -08:00
parent 714b09ddcb
commit fe3fcef7a9

14
Jenkinsfile vendored
View file

@ -17,10 +17,10 @@ pipeline {
git(url: 'https://github.com/MinecraftForge/MinecraftForge.git', changelog: true) git(url: 'https://github.com/MinecraftForge/MinecraftForge.git', changelog: true)
} }
} }
cache(maxCacheSize: 250/*MB*/, caches: [ stage('buildandtest') {
[$class: 'ArbitraryFileCache', excludes: 'log.txt', includes: '**/*', path: '${WORKSPACE}/projects/forge/build/extractRangeMap'] //Cache the rangemap to help speed up builds 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 { steps {
sh './gradlew ${GRADLE_ARGS} --refresh-dependencies --continue build test' sh './gradlew ${GRADLE_ARGS} --refresh-dependencies --continue build test'
script { script {
@ -34,7 +34,11 @@ pipeline {
} }
} }
} }
stage('publish') { }
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 { when {
not { not {
changeRequest() changeRequest()