You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .gitlab-ci.yml
+66-17Lines changed: 66 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -143,22 +143,25 @@ default:
143
143
CACHE_TYPE: lib #default
144
144
RUNTIME_AVAILABLE_PROCESSORS_OVERRIDE: 4# Runtime.getRuntime().availableProcessors() returns incorrect or very high values in Kubernetes
145
145
cache:
146
-
- key: '$CI_SERVER_VERSION-$CACHE_TYPE'# Dependencies cache. Reset the cache every time gitlab is upgraded. ~Every couple months
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
147
147
paths:
148
148
# Cached dependencies and wrappers for gradle
149
149
- .gradle/wrapper
150
150
- .gradle/caches
151
151
- .gradle/notifications
152
152
policy: $DEPENDENCY_CACHE_POLICY
153
153
fallback_keys: # Use fallback keys because all cache types are not populated. See note under: populate_dep_cache
154
+
#- '$CI_SERVER_VERSION-$CACHE_TYPE'
154
155
- '$CI_SERVER_VERSION-base'
155
156
- '$CI_SERVER_VERSION-lib'
156
-
- key: $CI_PIPELINE_ID-$CACHE_TYPE # Incremental build cache. Shared by all jobs in the pipeline of the same type
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
157
158
paths:
158
159
- .gradle/caches/$GRADLE_VERSION
159
160
- .gradle/$GRADLE_VERSION/executionHistory
160
161
- workspace
161
162
policy: $BUILD_CACHE_POLICY
163
+
#fallback_keys:
164
+
# - '$CI_PIPELINE_ID-$CACHE_TYPE'
162
165
before_script:
163
166
- source .gitlab/gitlab-utils.sh
164
167
- mkdir -p .gradle
@@ -210,7 +213,7 @@ build:
210
213
reports:
211
214
dotenv: build.env
212
215
213
-
build_tests:
216
+
.build_tests:
214
217
extends: .gradle_build
215
218
variables:
216
219
BUILD_CACHE_POLICY: push
@@ -232,13 +235,57 @@ build_tests:
232
235
- GRADLE_TARGET: ":smokeTest"
233
236
CACHE_TYPE: "smoke"
234
237
MAVEN_OPTS: "-Xms64M -Xmx512M -Dorg.slf4j.simpleLogger.defaultLogLevel=debug"# FIXME: Build :smokeTest build fails unless mvn debug logging is on
0 commit comments