Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

Add functionality of build reports in CI/CD in Jenkinsfile.

hanzalawebdevac3386f58b73
diff --git a/Jenkinsfile b/Jenkinsfile
index 57a77a635..d8a1fcc46 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -35,7 +35,7 @@ pipeline {
stage('Build Project') {
steps {
- sh 'npm run build'
+ sh 'npm run build 2>&1 | tee build_report.log' // Captures build output
}
}
}
@@ -44,6 +44,7 @@ pipeline {
always {
junit '**/reports/junit.xml'
archiveArtifacts artifacts: 'reports/**', fingerprint: true
+ archiveArtifacts artifacts: 'build_report.log', fingerprint: true
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
}
success {