From bcea1be19bfe2083926212c31d97c5819c7deece Mon Sep 17 00:00:00 2001 From: James Seibel Date: Tue, 22 Mar 2022 03:20:19 +0000 Subject: [PATCH] Fix the cache key being incorrectly set --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 36a989bfe..0b8368194 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,7 @@ build compile_18_1 1/2: cache: # The cached folders should only be used for this job. # This prevents jobs from using the same folder(s) and overwriting each other - key: "$CI_JOB_ID_18-1" + key: "${CI_JOB_ID}_18-1" policy: pull-push paths: - .gradle @@ -44,7 +44,7 @@ build compile_18_2 2/2: script: ./gradlew build -PmcVer=1.18.2 --gradle-user-home cache/; ./gradlew merge --gradle-user-home cache/ image: eclipse-temurin:17 cache: - key: "$CI_JOB_ID_18-2" + key: "${CI_JOB_ID}_18-2" policy: pull-push paths: - .gradle