Update Jenkinsfile

This commit is contained in:
egelhaus 2025-04-09 17:19:25 +02:00 committed by GitHub
parent 96420f4b5d
commit 798e4af50f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

10
Jenkinsfile vendored
View File

@ -65,10 +65,7 @@ pipeline {
junit '**/reports/junit.xml'
archiveArtifacts artifacts: 'reports/**', fingerprint: true
archiveArtifacts artifacts: 'build_report.log', fingerprint: true
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
}
success {
echo 'Build completed successfully!'
// Cache after cleanup in 'always'
cache(caches: [
arbitraryFileCache(
cacheName: 'Next',
@ -85,6 +82,11 @@ pipeline {
path: "~/.npm" // Use the HOME environment variable for home directory
)
], defaultBranch: 'dev', maxCacheSize: 256000, skipRestore: true)
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
}
success {
echo 'Build completed successfully!'
}
failure {
echo 'Build failed!'