refactor(DependenciesResolver): remove unnecessary excludes from cache configuration

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-04 12:57:33 +08:00
parent 0a1607c0c0
commit 1723d23507

View File

@ -55,7 +55,7 @@ class DependenciesResolver {
if (cachingEnabled) {
steps.dir(workspace) {
steps.cache(maxCacheSize: 512, caches: [[$class: 'ArbitraryFileCache', excludes: '', includes: '**/*', path: '.npm-cache']]) {
steps.cache(maxCacheSize: 512, caches: [[$class: 'ArbitraryFileCache', includes: '**/*', path: '.npm-cache']]) {
steps.sh "npm install --cache .npm-cache"
}
}
@ -75,7 +75,7 @@ class DependenciesResolver {
if (cachingEnabled) {
steps.dir(workspace) {
steps.cache(maxCacheSize: 512, caches: [[$class: 'ArbitraryFileCache', excludes: '', includes: '**/*', path: '.yarn-cache']]) {
steps.cache(maxCacheSize: 512, caches: [[$class: 'ArbitraryFileCache', includes: '**/*', path: '.yarn-cache']]) {
steps.sh "yarn install --cache-folder .yarn-cache"
}
}