Skip to content

Commit 007741c

Browse files
committed
Invalidate sbt caches
1 parent 72095b9 commit 007741c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ step_templates:
5151
restore-home-sbt-cache: &restore-home-sbt-cache
5252
restore_cache:
5353
keys:
54-
- v2-home-sbt-{{ checksum "build/sbt" }}-{{ checksum "project/target/streams/$global/update/$global/streams/update_cache_2.10/inputs" }}
54+
- v3-home-sbt-{{ checksum "build/sbt" }}-{{ checksum "project/target/streams/$global/update/$global/streams/update_cache_2.10/inputs" }}
5555
restore-build-sbt-cache: &restore-build-sbt-cache
5656
restore_cache:
57-
key: v1-build-sbt-{{ .Branch }}-{{ .Revision }}
57+
key: v2-build-sbt-{{ .Branch }}-{{ .Revision }}
5858
link-in-build-sbt-cache: &link-in-build-sbt-cache
5959
run:
6060
name: Hard link cache contents into current build directory
@@ -244,7 +244,7 @@ jobs:
244244
path: /tmp/build-apache-spark.log
245245
destination: build-apache-spark.log
246246
- save_cache:
247-
key: v2-home-sbt-{{ checksum "build/sbt" }}-{{ checksum "project/target/streams/$global/update/$global/streams/update_cache_2.10/inputs" }}
247+
key: v3-home-sbt-{{ checksum "build/sbt" }}-{{ checksum "project/target/streams/$global/update/$global/streams/update_cache_2.10/inputs" }}
248248
paths: ~/.sbt
249249
# Also hard link all the things so we can save it as a cache and restore it in future builds
250250
- run:
@@ -254,7 +254,7 @@ jobs:
254254
--exclude '***/*.jar' --include 'target/***'
255255
--include '**/' --exclude '*' . "$BUILD_SBT_CACHE/"
256256
- save_cache:
257-
key: v1-build-sbt-{{ .Branch }}-{{ .Revision }}
257+
key: v2-build-sbt-{{ .Branch }}-{{ .Revision }}
258258
paths:
259259
- "~/build-sbt-cache"
260260
# Also save all the assembly jars directories to the workspace - need them for spark submitting

0 commit comments

Comments
 (0)