commit
91fa898908
|
|
@ -6,6 +6,30 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
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 {
|
||||||
|
echo 'Start fetching Cache.'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Checkout Repository') {
|
stage('Checkout Repository') {
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
@ -38,6 +62,30 @@ pipeline {
|
||||||
sh 'npm run build 2>&1 | tee build_report.log' // Captures build output
|
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 {
|
||||||
|
echo 'Start saving Cache.'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
|
|
@ -49,9 +97,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
success {
|
success {
|
||||||
echo 'Build completed successfully!'
|
echo 'Build completed successfully!'
|
||||||
|
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo 'Build failed!'
|
echo 'Build failed!'
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://postiz.com" target="_blank">
|
<a href="https://postiz.com/" target="_blank">
|
||||||
<picture>
|
<picture>
|
||||||
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/user-attachments/assets/765e9d72-3ee7-4a56-9d59-a2c9befe2311">
|
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/user-attachments/assets/765e9d72-3ee7-4a56-9d59-a2c9befe2311">
|
||||||
<img alt="Postiz Logo" src="https://github.com/user-attachments/assets/f0d30d70-dddb-4142-8876-e9aa6ed1cb99" width="280"/>
|
<img alt="Postiz Logo" src="https://github.com/user-attachments/assets/f0d30d70-dddb-4142-8876-e9aa6ed1cb99" width="280"/>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
v1.38.1
|
||||||
Loading…
Reference in New Issue