Update Jenkinsfile

This commit is contained in:
egelhaus 2025-03-18 07:56:47 +01:00 committed by GitHub
parent d973ea5876
commit 057755fcfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

7
Jenkinsfile vendored
View File

@ -42,16 +42,15 @@ pipeline {
post {
always {
junit 'reports/junit.xml'
archiveArtifacts artifacts: 'reports/**', fingerprint: true
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
}
success {
echo 'Build completed successfully!'
junit 'reports/junit.xml'
archiveArtifacts artifacts: 'reports/**', fingerprint: true
}
failure {
echo 'Build failed!'
junit 'reports/junit.xml' // Ensures test results are captured even on failure
}
}
}
}