diff --git a/.buildkite/commands/test-ios.sh b/.buildkite/commands/test-ios.sh index 00358c8ec8..71bf339876 100755 --- a/.buildkite/commands/test-ios.sh +++ b/.buildkite/commands/test-ios.sh @@ -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