Skip to content

Commit 4a204b7

Browse files
committed
Use CI_SPLIT for cache keys
1 parent e40c36b commit 4a204b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,18 @@ default:
143143
CACHE_TYPE: lib #default
144144
RUNTIME_AVAILABLE_PROCESSORS_OVERRIDE: 4 # Runtime.getRuntime().availableProcessors() returns incorrect or very high values in Kubernetes
145145
cache:
146-
- key: '$CI_SERVER_VERSION-$CACHE_TYPE-$NORMALIZED_NODE_TOTAL-$NORMALIZED_NODE_INDEX' # Dependencies cache. Reset the cache every time gitlab is upgraded. ~Every couple months
146+
- key: '$CI_SERVER_VERSION-$CACHE_TYPE-$CI_SPLIT' # Dependencies cache. Reset the cache every time gitlab is upgraded. ~Every couple months
147147
paths:
148148
# Cached dependencies and wrappers for gradle
149149
- .gradle/wrapper
150150
- .gradle/caches
151151
- .gradle/notifications
152152
policy: $DEPENDENCY_CACHE_POLICY
153-
fallback_keys: # Use fallback keys because all cache types are not populated. See note under: populate_dep_cache
153+
#fallback_keys: # Use fallback keys because all cache types are not populated. See note under: populate_dep_cache
154154
#- '$CI_SERVER_VERSION-$CACHE_TYPE'
155-
- '$CI_SERVER_VERSION-base'
156-
- '$CI_SERVER_VERSION-lib'
157-
- key: $CI_PIPELINE_ID-$CACHE_TYPE-$NORMALIZED_NODE_TOTAL-$NORMALIZED_NODE_INDEX # Incremental build cache. Shared by all jobs in the pipeline of the same type
155+
#- '$CI_SERVER_VERSION-base'
156+
#- '$CI_SERVER_VERSION-lib'
157+
- key: $CI_PIPELINE_ID-$CACHE_TYPE-$CI_SPLIT # Incremental build cache. Shared by all jobs in the pipeline of the same type
158158
paths:
159159
- .gradle/caches/$GRADLE_VERSION
160160
- .gradle/$GRADLE_VERSION/executionHistory

0 commit comments

Comments
 (0)