Skip to content

Commit

Permalink
Force a cache refresh with a version
Browse files Browse the repository at this point in the history
I haven't found a proper way to reset the caches from the UI.
  • Loading branch information
gsmet committed Nov 25, 2019
1 parent ad45297 commit 02cc911
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci-templates/stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ stages:

- task: CacheBeta@0
inputs:
key: maven | bom/runtime/pom.xml #if we attempt to use all poms then when they get copied to target everything breaks. This should be good enough, it does not need to be perfect
# the number below is a cache version when we want to force a cache refresh
key: maven | "1" | bom/runtime/pom.xml #if we attempt to use all poms then when they get copied to target everything breaks. This should be good enough, it does not need to be perfect
path: $(MAVEN_CACHE_FOLDER)
securityNamespace: cache
cacheHitVar: CACHE_RESTORED
Expand Down Expand Up @@ -62,7 +63,8 @@ stages:
steps:
- task: CacheBeta@0
inputs:
key: mavenWindows | bom/runtime/pom.xml #if we attempt to use all poms then when they get copied to target everything breaks. This should be good enough, it does not need to be perfect
# the number below is a cache version when we want to force a cache refresh
key: mavenWindows | "1" | bom/runtime/pom.xml #if we attempt to use all poms then when they get copied to target everything breaks. This should be good enough, it does not need to be perfect
path: $(MAVEN_CACHE_FOLDER)
securityNamespace: cache
cacheHitVar: CACHE_RESTORED
Expand Down

0 comments on commit 02cc911

Please sign in to comment.