refactor(DependenciesResolver): remove unnecessary excludes from cache configuration
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
0a1607c0c0
commit
1723d23507
@ -55,7 +55,7 @@ class DependenciesResolver {
|
|||||||
|
|
||||||
if (cachingEnabled) {
|
if (cachingEnabled) {
|
||||||
steps.dir(workspace) {
|
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"
|
steps.sh "npm install --cache .npm-cache"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -75,7 +75,7 @@ class DependenciesResolver {
|
|||||||
|
|
||||||
if (cachingEnabled) {
|
if (cachingEnabled) {
|
||||||
steps.dir(workspace) {
|
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"
|
steps.sh "yarn install --cache-folder .yarn-cache"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user