Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

Update Jenkinsfile

egelhaus6271e2c06d98
diff --git a/Jenkinsfile b/Jenkinsfile
index ffda1750b..2cfc09cf2 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!'