Potentially fix cache in Jenkinsfile.
This commit is contained in:
parent
714b09ddcb
commit
fe3fcef7a9
1 changed files with 9 additions and 5 deletions
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue