diff --git a/regression_tests/buildspecs/stages/build/build-platform-helper-and-reclone-demodjango-repositories-action.yml b/regression_tests/buildspecs/stages/build/build-platform-helper-and-reclone-demodjango-repositories-action.yml index ebfa185d0..361c4168a 100644 --- a/regression_tests/buildspecs/stages/build/build-platform-helper-and-reclone-demodjango-repositories-action.yml +++ b/regression_tests/buildspecs/stages/build/build-platform-helper-and-reclone-demodjango-repositories-action.yml @@ -3,12 +3,14 @@ version: 0.2 env: parameter-store: SLACK_TOKEN: /codebuild/slack_oauth_token - SLACK_CHANNEL_ID: /codebuild/slack_oauth_channel + SLACK_CHANNEL_ID: /codebuild/slack_channel_id_test_command_output phases: build: commands: + - echo -e "\nCurrent platform-tools branch/commit: $(git rev-parse --abbrev-ref HEAD)/$(git rev-parse HEAD)" - exit 1 + - source ./regression_tests/actions/create_virtual_environment.sh - source ./regression_tests/actions/set_up_git_config.sh diff --git a/regression_tests/src/send_failure_alerts.sh b/regression_tests/src/send_failure_alerts.sh index a77c5a33b..e17b58b44 100755 --- a/regression_tests/src/send_failure_alerts.sh +++ b/regression_tests/src/send_failure_alerts.sh @@ -1,8 +1,8 @@ #!/bin/bash -env +echo "TARGET_ENVIRONMENT: ${TARGET_ENVIRONMENT}" -if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "main" && [ "${TARGET_ENVIRONMENT:-toolspr}" == "toolspr" ]; then +if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "1291-sort-out-alerts" && [ "${TARGET_ENVIRONMENT:-toolspr}" == "tony" ]; then echo -e "\nAction failed sending alert" pip install dbt-platform-helper MESSAGE=":alert: @here DBT Platform regression tests have failed in :sob:"