Skip to content

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

Update Jenkinsfile

egelhaus632639bb409c
diff --git a/Jenkinsfile b/Jenkinsfile
index 85101ae9c..f97e5c9fc 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -6,23 +6,27 @@ pipeline {
}
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('Fetch Cache') {
+ 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, skipSave: true)
+ }
+ steps {
+ }
}
stage('Checkout Repository') {
@@ -57,6 +61,29 @@ pipeline {
sh 'npm run build 2>&1 | tee build_report.log' // Captures build output
}
}
+
+ stage('Save Cache') {
+ 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, skipRestore: true)
+ }
+ steps {
+ }
+ }
}
post {