Update Jenkinsfile

This commit is contained in:
egelhaus 2025-04-09 16:40:37 +02:00 committed by GitHub
parent 69a938b3b8
commit 46f0f270ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 5 deletions

18
Jenkinsfile vendored
View File

@ -8,15 +8,23 @@ pipeline {
options {
cache(caches: [
arbitraryFileCache(
cacheName: 'NPM',
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: '~/.npm'
cacheName: 'Next',
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "${WORKSPACE}/.next/cache"
),
arbitraryFileCache(
cacheName: 'NPM', // Added a cache name for better clarity
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "${HOME}/.npm" // Use the HOME environment variable for home directory
)
], defaultBranch: 'dev', maxCacheSize: 256000)
}
stages {
stage('Checkout Repository') {
steps {