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

Build status is set to 0 ("Clean") after exception thrown during Transfer.groovy #445

Closed lauren-li closed 5 months ago

lauren-li commented 8 months ago

When a truncation error occurs during Transfer.groovy (e.g. a transferred text file is over 80 columns), an exception is thrown and the console output shows that the build ended in an ERROR state:

Screenshot 2023-11-10 at 1 48 29 am

However, the build result (i.e. retrieved with the dbb build-result export command) shows a status of 0 'CLEAN':

Screenshot 2023-11-10 at 1 46 46 am

The truncation error exception results in the execution of the catch block in Transfer.groovy: https://github.com/IBM/dbb-zappbuild/blob/main/languages/Transfer.groovy#L124-L129 Screenshot 2023-11-10 at 1 56 18 am

M-DLB commented 7 months ago

After investigation with @lauren-li and @monvora, it looks like an issue with the underlying technology that we will report to the development team.

dennis-behm commented 7 months ago

A defect has been identified with the FileMetadataStore, that will be addressed by the DBB development team.

dennis-behm commented 6 months ago

Please tack the defect in the file metadata store via the support channels.

Enhancements to improve the Exception handling has been delivered via zAppBuild Release 3.6.0

dennis-behm commented 5 months ago

APAR PH58203 has been opened to address the situation that CopyToPDS returns/reports a RC=0 on an exception