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 82ee9defa..5150e7735 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 @@ -47,7 +47,7 @@ phases: post_build: commands: - | - if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "main"; then + if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "main" && "${TARGET_ENVIRONMENT:-toolspr}" == "toolspr"; then venv/bin/pip install dbt-platform-helper MESSAGE=":alert: @here DBT Platform regression tests have failed in :sob:" platform-helper notify add-comment "${SLACK_CHANNEL_ID}" "${SLACK_TOKEN}" "" "${MESSAGE}" diff --git a/regression_tests/buildspecs/stages/deploy/run-codebase-deploy-pipeline.yml b/regression_tests/buildspecs/stages/deploy/run-codebase-deploy-pipeline.yml index 44ee008fc..eacbd2a74 100644 --- a/regression_tests/buildspecs/stages/deploy/run-codebase-deploy-pipeline.yml +++ b/regression_tests/buildspecs/stages/deploy/run-codebase-deploy-pipeline.yml @@ -22,7 +22,7 @@ phases: post_build: commands: - | - if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "main"; then + if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "main" && "${TARGET_ENVIRONMENT:-toolspr}" == "toolspr"; then venv/bin/pip install dbt-platform-helper MESSAGE=":alert: @here DBT Platform regression tests have failed in :sob:" platform-helper notify add-comment "${SLACK_CHANNEL_ID}" "${SLACK_TOKEN}" "" "${MESSAGE}" diff --git a/regression_tests/buildspecs/stages/deploy/run-environment-pipeline.yml b/regression_tests/buildspecs/stages/deploy/run-environment-pipeline.yml index f954e83d0..10f38da58 100644 --- a/regression_tests/buildspecs/stages/deploy/run-environment-pipeline.yml +++ b/regression_tests/buildspecs/stages/deploy/run-environment-pipeline.yml @@ -22,7 +22,7 @@ phases: post_build: commands: - | - if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "main"; then + if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "main" && "${TARGET_ENVIRONMENT:-toolspr}" == "toolspr"; then venv/bin/pip install dbt-platform-helper MESSAGE=":alert: @here DBT Platform regression tests have failed in :sob:" platform-helper notify add-comment "${SLACK_CHANNEL_ID}" "${SLACK_TOKEN}" "" "${MESSAGE}" diff --git a/regression_tests/buildspecs/stages/test/run-browser-tests.yml b/regression_tests/buildspecs/stages/test/run-browser-tests.yml index 8006f1bc8..a410c7067 100644 --- a/regression_tests/buildspecs/stages/test/run-browser-tests.yml +++ b/regression_tests/buildspecs/stages/test/run-browser-tests.yml @@ -25,7 +25,7 @@ phases: post_build: commands: - | - if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "main"; then + if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ] && git branch --contains $CODEBUILD_RESOLVED_SOURCE_VERSION | grep -q "main" && "${TARGET_ENVIRONMENT:-toolspr}" == "toolspr"; then venv/bin/pip install dbt-platform-helper MESSAGE=":alert: @here DBT Platform regression tests have failed in :sob:" platform-helper notify add-comment "${SLACK_CHANNEL_ID}" "${SLACK_TOKEN}" "" "${MESSAGE}"