Skip to content

Commit

Permalink
Only notify Slack via annotate_test_failures from trunk (#6300)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio authored Oct 19, 2023
2 parents 81c9ed8 + 0057084 commit a5394f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .buildkite/commands/test-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ else
echo "npm run $TESTS_CMD failed."
echo "For more details about the failed tests, check the Buildkite annotation, the logs under the '$SECTION' section and the tests results in the artifacts tab."

annotate_test_failures "$JEST_JUNIT_OUTPUT_FILE" --slack "build-and-ship"
if [[ $BUILDKITE_BRANCH == trunk ]]; then
annotate_test_failures "$JEST_JUNIT_OUTPUT_FILE" --slack "build-and-ship"
else
annotate_test_failures "$JEST_JUNIT_OUTPUT_FILE"
fi

exit $TESTS_EXIT_CODE
fi

0 comments on commit a5394f2

Please sign in to comment.