From 46f0f270ca2a96b01c708c1165c1f9d4982acff8 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Wed, 9 Apr 2025 16:40:37 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6b51ce66..fe5c5099 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {