|
|
|
@ -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: |
|
|
|
|