We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76c571e + b4aa671 commit 0849bdcCopy full SHA for 0849bdc
Jenkinsfile
@@ -35,7 +35,7 @@ pipeline {
35
36
stage('Build Project') {
37
steps {
38
- sh 'npm run build'
+ sh 'npm run build 2>&1 | tee build_report.log' // Captures build output
39
}
40
41
@@ -44,6 +44,7 @@ pipeline {
44
always {
45
junit '**/reports/junit.xml'
46
archiveArtifacts artifacts: 'reports/**', fingerprint: true
47
+ archiveArtifacts artifacts: 'build_report.log', fingerprint: true
48
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
49
50
success {
0 commit comments