Update Jenkinsfile

This commit is contained in:
egelhaus 2025-03-18 10:04:32 +01:00 committed by GitHub
parent 057755fcfa
commit 251cf074c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -29,7 +29,7 @@ pipeline {
stage('Run Unit Tests') {
steps {
sh 'npm run test -- --coverage --reporters=jest-junit'
sh 'npm run build -- --coverage --reporters=jest-junit'
}
}
@ -44,7 +44,7 @@ pipeline {
always {
junit 'reports/junit.xml'
archiveArtifacts artifacts: 'reports/**', fingerprint: true
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
cleanWs(cleanWhenNotBuilt: true, notFailBuild: true)
}
success {
echo 'Build completed successfully!'