From 6271e2c06d98a101ef4ba823ae6ef1e4e6f36028 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Wed, 9 Apr 2025 17:05:20 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ffda1750..2cfc09cf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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!'