Skip to content

Commit 0849bdc

Browse files
authored
Merge pull request #664 from hanzalawebdev/main
2 parents 76c571e + b4aa671 commit 0849bdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pipeline {
3535

3636
stage('Build Project') {
3737
steps {
38-
sh 'npm run build'
38+
sh 'npm run build 2>&1 | tee build_report.log' // Captures build output
3939
}
4040
}
4141
}
@@ -44,6 +44,7 @@ pipeline {
4444
always {
4545
junit '**/reports/junit.xml'
4646
archiveArtifacts artifacts: 'reports/**', fingerprint: true
47+
archiveArtifacts artifacts: 'build_report.log', fingerprint: true
4748
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
4849
}
4950
success {

0 commit comments

Comments
 (0)