fix(pipeline): update pnpm cache directory to use /tmp for improved caching

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-02-25 03:11:57 +08:00
parent 1c9beb8622
commit 0e5282ca81

View File

@ -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"
}
}