Circleci adds CACHEVER to be able to bust cache on demand

This commit is contained in:
spencergibb
2020-07-09 15:26:52 -04:00
parent 3d76da7240
commit 73cd403299

View File

@@ -6,20 +6,24 @@ jobs:
# - image: springcloud/pipeline-base
environment:
_JAVA_OPTIONS: "-Xms1024m -Xmx2048m"
CACHEVER: 3
TERM: dumb
branches:
ignore:
- gh-pages # list of branches to ignore
steps:
- checkout
# - restore_cache:
# key: sc-gateway-{{ .Branch }}
- type: shell
name: "Write CACHEVER to file"
command: echo "$CACHEVER" > ~/CACHEVER.txt
- restore_cache:
key: sc-gateway-{{ .Branch }}-{{ checksum "~/CACHEVER.txt" }}
- run:
name: "Download dependencies"
command: |
./mvnw -s .settings.xml -U --fail-never dependency:go-offline || true
- save_cache:
key: sc-gateway-{{ .Branch }}
key: sc-gateway-{{ .Branch }}-{{ checksum "~/CACHEVER.txt" }}
paths:
- ~/.m2
- run: