fix(pipeline): update pnpm cache directory to use /tmp for improved caching
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
1c9beb8622
commit
0e5282ca81
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user