Potentially fix cache in Jenkinsfile.

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

6
Jenkinsfile vendored
View file

@ -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()