Skip to content

Commit 3d8ba2e

Browse files
exit 1
1 parent 36f028a commit 3d8ba2e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/e2e-test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ jobs:
4747
awk '/Results:/, /----/' mvn_output.log > test_error.log || true # true ensures the step doesn't fail if no match is found.
4848
ERROR_MSG=$(cat test_error.log | tail +4 | head -n -4 | sed ':a;N;$!ba;s/\n/\\n/g') # Slack formatting
4949
echo "error_message=$ERROR_MSG" >> $GITHUB_OUTPUT
50+
51+
if grep -q "BUILD FAILURE" mvn_output.log; then
52+
echo "Maven build failed."
53+
exit 1
54+
elif grep -q "BUILD SUCCESS" mvn_output.log; then
55+
echo "Maven build succeeded."
56+
else
57+
echo "Maven build status unknown."
58+
exit 1
59+
fi
5060
env:
5161
# See "End-to-end test application instructions" on the README.md to update the secret
5262
AICORE_SERVICE_KEY: ${{ secrets[matrix.secret-name] }}

0 commit comments

Comments
 (0)