We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36f028a commit 3d8ba2eCopy full SHA for 3d8ba2e
.github/workflows/e2e-test.yaml
@@ -47,6 +47,16 @@ jobs:
47
awk '/Results:/, /----/' mvn_output.log > test_error.log || true # true ensures the step doesn't fail if no match is found.
48
ERROR_MSG=$(cat test_error.log | tail +4 | head -n -4 | sed ':a;N;$!ba;s/\n/\\n/g') # Slack formatting
49
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
59
+ fi
60
env:
61
# See "End-to-end test application instructions" on the README.md to update the secret
62
AICORE_SERVICE_KEY: ${{ secrets[matrix.secret-name] }}
0 commit comments