Skip to content

Commit 7827060

Browse files
committed
v1-maven-build-with-version should cache by revision not buildNum since it needs to be common between different jobs
1 parent 349a63c commit 7827060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ jobs:
353353
# This is potentially costly but we can't use the workspace as it would conflict with
354354
# compilation results from build-sbt
355355
- save_cache:
356-
key: v1-maven-build-with-version-{{ .Branch }}-{{ .BuildNum }}
356+
key: v1-maven-build-with-version-{{ .Branch }}-{{ .Revision }}
357357
paths:
358358
- .
359359

@@ -366,7 +366,7 @@ jobs:
366366
# This cache contains the whole project after version was set and mvn package was called
367367
# Restoring first (and instead of checkout) as mvn versions:set mutates real source code...
368368
- restore_cache:
369-
key: v1-maven-build-with-version-{{ .Branch }}-{{ .BuildNum }}
369+
key: v1-maven-build-with-version-{{ .Branch }}-{{ .Revision }}
370370
- restore_cache:
371371
key: maven-dependency-cache-{{ checksum "pom.xml" }}
372372
- restore_cache:

0 commit comments

Comments
 (0)