Jenkinsfile aktualisieren

This commit is contained in:
egelhaus 2025-04-14 03:11:02 +02:00 committed by GitHub
parent 1e669f69b2
commit 956c5825e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 10 deletions

11
Jenkinsfile vendored
View File

@ -27,23 +27,14 @@ pipeline {
}
}
stage('Run Unit Tests') {
steps {
sh 'npm test'
}
}
stage('Build Project') {
steps {
sh 'npm run build 2>&1 | tee build_report.log' // Captures build output
sh 'npm run build'
}
}
}
post {
always {
junit '**/reports/junit.xml'
archiveArtifacts artifacts: 'reports/**', fingerprint: true
archiveArtifacts artifacts: 'build_report.log', fingerprint: true
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
}
success {