add context lines to build failures

This commit is contained in:
karmaking 2026-01-21 11:59:36 +01:00 committed by simonredfern
parent 7a27d3ac0d
commit bb4e082160

View File

@ -86,7 +86,7 @@ jobs:
echo "No maven-build.log found; skipping failure scan."
exit 0
fi
if grep -n "\*\*\* FAILED \*\*\*" maven-build.log; then
if grep -C 3 -n "\*\*\* FAILED \*\*\*" maven-build.log; then
echo "Failing tests detected above."
exit 1
else