Skip to content

Commit cf31e83

Browse files
dansanduleacrobert3005
authored andcommitted
Store/restore ~/.m2 after versioned build (since pom.xml changes) (apache-spark-on-k8s#339)
1 parent 4c99e63 commit cf31e83

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.circleci/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,10 @@ jobs:
354354
# compilation results from build-sbt
355355
- save_cache:
356356
key: v1-maven-build-with-version-{{ .Branch }}-{{ .Revision }}
357-
paths:
358-
- .
357+
paths: .
358+
- save_cache:
359+
key: v1-maven-dependency-cache-versioned-{{ checksum "pom.xml" }}
360+
paths: ~/.m2
359361

360362
deploy:
361363
<<: *defaults
@@ -368,7 +370,7 @@ jobs:
368370
- restore_cache:
369371
key: v1-maven-build-with-version-{{ .Branch }}-{{ .Revision }}
370372
- restore_cache:
371-
key: maven-dependency-cache-{{ checksum "pom.xml" }}
373+
key: v1-maven-dependency-cache-versioned-{{ checksum "pom.xml" }}
372374
- restore_cache:
373375
key: build-binaries-{{ checksum "build/mvn" }}-{{ checksum "build/sbt" }}
374376

0 commit comments

Comments
 (0)