Update Jenkinsfile

This commit is contained in:
egelhaus 2025-04-09 21:00:15 +02:00 committed by GitHub
parent c36c16d92f
commit 3c00ea792a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 20 deletions

39
Jenkinsfile vendored
View File

@ -5,27 +5,26 @@ pipeline {
NODE_VERSION = '20.17.0'
}
options {
cache(caches: [
arbitraryFileCache(
cacheName: 'Next',
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "./.nx/cache"
),
arbitraryFileCache(
cacheName: 'NodeJS', // Added a cache name for better clarity
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "./node_modules" // Use the HOME environment variable for home directory
)
], defaultBranch: 'dev', maxCacheSize: 256000)
}
stages {
options {
cache(caches: [
arbitraryFileCache(
cacheName: 'Next',
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "./.nx/cache"
),
arbitraryFileCache(
cacheName: 'NodeJS', // Added a cache name for better clarity
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "./node_modules" // Use the HOME environment variable for home directory
)
], defaultBranch: 'dev', maxCacheSize: 256000)
}
stage('Checkout Repository') {
steps {
checkout scm