IBM / dbb-zappbuild

zAppBuild is a generic build solution for building z/OS applications using Apache Groovy build scripts and IBM Dependency Based Build (DBB) APIs.
Apache License 2.0
40 stars 123 forks source link

Provide a summary of error messages in pipeline builds #472

Closed dennis-behm closed 4 months ago

dennis-behm commented 4 months ago

In case of a failed build step that updates the build result via the buildUtils.updateBuildResult method, a new summary section is introduced as part of the finalisation of the build process:

This should make it more convenient to have these messages at a glance.

...
***************** Finalization of the build process *****************
...
** Updating build result BuildGroup:MortgageApplication-feature/470-errrorsummary BuildLabel:build.20240213.131754.983
** Build ended at Tue Feb 13 13:18:03 GMT+01:00 2024
** Build State : ERROR
** Total files processed : 5
** Summary of error messages
   *! The build return code (8) for MortgageApplication/bms/epsmort.bms exceeded the maximum return code allowed (0)
   *! The compile return code (12) for MortgageApplication/cobol/epscmort.cbl exceeded the maximum return code allowed (4)
   *! The compile return code (12) for MortgageApplication/cobol/epscsmrt.cbl exceeded the maximum return code allowed (4)
   *! The compile return code (12) for MortgageApplication/cobol/epsmlist.cbl exceeded the maximum return code allowed (4)