Jenkinsfile aktualisieren
This commit is contained in:
parent
1e669f69b2
commit
956c5825e4
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue