From 0e5282ca818535c05cb5ca3388c54514116dddc4 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Tue, 25 Feb 2025 03:11:57 +0800 Subject: [PATCH] fix(pipeline): update pnpm cache directory to use /tmp for improved caching Signed-off-by: zhenyus --- .../src/com/freeleaps/devops/DependenciesResolver.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first-class-pipeline/src/com/freeleaps/devops/DependenciesResolver.groovy b/first-class-pipeline/src/com/freeleaps/devops/DependenciesResolver.groovy index 4d9d8bc4..46f58f5b 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/DependenciesResolver.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/DependenciesResolver.groovy @@ -138,7 +138,7 @@ class DependenciesResolver { if (cachingEnabled) { steps.dir(this.workspace) { steps.cache(maxCacheSize: 512, caches: [[$class: 'ArbitraryFileCache', includes: '**/*', path: "/tmp/.${configurations.name}-pnpm-cache", cacheValidityDecidingFile: 'pnpm-lock.yaml']]) { - steps.sh "mkdir -p ${configurations.name}-pnpm-cache" + steps.sh "mkdir -p /tmp/.${configurations.name}-pnpm-cache" steps.sh "pnpm install --store-dir /tmp/.${configurations.name}-pnpm-cache --prefer-offline" } }