Browse Source

Circleci adds CACHEVER to be able to bust cache on demand

pull/1841/head
spencergibb 5 years ago
parent
commit
73cd403299
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 10
      .circleci/config.yml

10
.circleci/config.yml

@ -6,20 +6,24 @@ jobs: @@ -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:

Loading…
Cancel
Save