Skip to content

Commit a611e0c

Browse files
Allow tag builds to access Gitlab cache (#9124)
* Allow tag builds to access Gitlab cache * Fix populate cache builds not on master
1 parent 4acd1c7 commit a611e0c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ default:
146146
- .gradle/caches
147147
- .gradle/notifications
148148
policy: $DEPENDENCY_CACHE_POLICY
149+
unprotect: true
149150
fallback_keys: # Use fallback keys because all cache types are not populated. See note under: populate_dep_cache
150151
- '$CI_SERVER_VERSION-base'
151152
- '$CI_SERVER_VERSION-lib'
@@ -155,6 +156,7 @@ default:
155156
- .gradle/$GRADLE_VERSION/executionHistory
156157
- workspace
157158
policy: $BUILD_CACHE_POLICY
159+
unprotect: true
158160
before_script:
159161
- source .gitlab/gitlab-utils.sh
160162
# Akka token added to SSM from https://account.akka.io/token

.gitlab/benchmarks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ check-big-regressions:
7676
when: on_success
7777
tags: ["arch:amd64"]
7878
rules:
79+
- if: '$POPULATE_CACHE'
80+
when: never
7981
- if: '$CI_COMMIT_BRANCH !~ /^(master|release\/)/'
8082
when: on_success
8183
- when: never

0 commit comments

Comments
 (0)