Skip to content

Commit ba05cb1

Browse files
committed
wip: can we cache mix?
1 parent 99b4966 commit ba05cb1

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

build-aux/Jenkinsfile

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ pipeline {
498498
}
499499

500500
stages {
501-
502501
stage('Setup Env') {
503502
agent {
504503
docker {
@@ -612,13 +611,21 @@ pipeline {
612611
}
613612
}
614613
steps {
615-
sh '''
616-
rm -rf apache-couchdb-*
617-
./configure --skip-deps --spidermonkey-version 78
618-
make erlfmt-check
619-
make elixir-source-checks
620-
make python-black
621-
'''
614+
cache(
615+
maxCacheSize: 250,
616+
defaultBranch: 'main',
617+
cacheValidityDecidingFile: 'mix.exs',
618+
caches: [
619+
arbitraryFileCache(path: '_build', compressionMethod" 'TAR')
620+
]) {
621+
sh '''
622+
rm -rf apache-couchdb-*
623+
./configure --skip-deps --spidermonkey-version 78
624+
make erlfmt-check
625+
make elixir-source-checks
626+
make python-black
627+
'''
628+
}
622629
}
623630
post {
624631
cleanup {

0 commit comments

Comments
 (0)