diff --git a/.circleci/config.yml b/.circleci/config.yml index 5546bcfb..d0a1aa4e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: