Builds are failing with truncated logs when errexit is used

Builds are failing and logs are getting truncated. I saw similar posts where it was indicated that using exit was the issue. I check to see if we were using exit anywhere, and we are not. Please let me know if we are using the system incorrectly, or if this is a bug.

Here’s an example failed build:
Here is another, failing in a different area:

Thank you

You are setting errexit option,

and your build is dying at the first sign of trouble.

I would guess that the logs are not flushed when the script dies, giving you an impression that the build is failing at different points.

I would suggest removing set -eto figure out how exactly things are failing for you.

1 Like

Ok, that makes sense. Thanks for your help!