Update Jenkinsfile

This commit is contained in:
egelhaus 2025-04-09 17:05:20 +02:00 committed by GitHub
parent 181fba1736
commit 6271e2c06d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 1 deletions

19
Jenkinsfile vendored
View File

@ -21,7 +21,7 @@ pipeline {
includes: '**/*',
path: "~/.npm" // Use the HOME environment variable for home directory
)
], defaultBranch: 'dev', maxCacheSize: 256000)
], defaultBranch: 'dev', maxCacheSize: 256000, skipSave: true)
}
@ -69,6 +69,23 @@ pipeline {
}
success {
echo 'Build completed successfully!'
cache(caches: [
arbitraryFileCache(
cacheName: 'Next',
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "./.next/cache"
),
arbitraryFileCache(
cacheName: 'NPM', // Added a cache name for better clarity
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "~/.npm" // Use the HOME environment variable for home directory
)
], defaultBranch: 'dev', maxCacheSize: 256000, skipRestore: true)
}
}
failure {
echo 'Build failed!'