ci: Add some debug info for failed server build

This commit is contained in:
Shrikant Sharat Kandula 2024-02-29 12:00:34 +05:30 committed by GitHub
parent 1d4198048c
commit d831f289e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,6 +183,11 @@ jobs:
if ! mvn test "${args[@]}"; then
gawk -F\" '/<testcase / {cur_test = $4 "#" $2} /<failure / {print cur_test}' $(find . -type f -name 'TEST-*.xml') \
> failed-server-tests.txt
echo "Report files found:"
find . -type f -name 'TEST-*.xml'
echo "Test case and failure lines:"
grep -E 'testcase|failure' $(find . -type f -name 'TEST-*.xml')
echo "No failed tests found"
if [[ -s failed-server-tests.txt ]]; then
content="$(
echo "## Failed server tests"