Skip to content

Commit 3a93c7c

Browse files
authored
fix: .gradle file may not exist when there's no gitlab cache (#8994)
This fixes the `populate_dep_cache` job.
1 parent 5ee43c6 commit 3a93c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ default:
136136
policy: $BUILD_CACHE_POLICY
137137
before_script:
138138
- source .gitlab/gitlab-utils.sh
139+
- mkdir -p .gradle
139140
- export GRADLE_USER_HOME=$(pwd)/.gradle
140141
- |
141142
# Don't put jvm args here as it will be picked up by child gradle processes used in tests
@@ -153,7 +154,6 @@ default:
153154
# with Gitlab caching, .gradle is always owned by root and thus gradle's chmod invocation fails
154155
# This dance is a hack to have .gradle owned by the Gitlab runner user
155156
- gitlab_section_start "gradle-dance" "Fix .gradle directory permissions"
156-
- mkdir -p .gradle
157157
- cp -r .gradle .gradle-copy
158158
- rm -rf .gradle
159159
- mv .gradle-copy .gradle

0 commit comments

Comments
 (0)