From 90909b6ed675c84e1a8da1384cedb7679c9b900f Mon Sep 17 00:00:00 2001 From: Trevor Pierce <1Copenut@users.noreply.github.com> Date: Mon, 31 Jul 2023 11:12:03 -0500 Subject: [PATCH] [INFRA] Adding logic to prevent Buildkite triggered jobs on merge to `main`. (#7010) Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com> --- .buildkite/pipelines/pipeline_pull_request_deploy_docs.yml | 1 + .buildkite/pipelines/pipeline_pull_request_test.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.buildkite/pipelines/pipeline_pull_request_deploy_docs.yml b/.buildkite/pipelines/pipeline_pull_request_deploy_docs.yml index 9605f517fff..f91fc0b7247 100644 --- a/.buildkite/pipelines/pipeline_pull_request_deploy_docs.yml +++ b/.buildkite/pipelines/pipeline_pull_request_deploy_docs.yml @@ -4,3 +4,4 @@ steps: - agents: provider: "gcp" command: .buildkite/scripts/pipeline_deploy_docs.sh + if: build.branch != "main" # We don't want to deploy docs on main, only on manual release diff --git a/.buildkite/pipelines/pipeline_pull_request_test.yml b/.buildkite/pipelines/pipeline_pull_request_test.yml index ce78e12d413..af25c625a9f 100644 --- a/.buildkite/pipelines/pipeline_pull_request_test.yml +++ b/.buildkite/pipelines/pipeline_pull_request_test.yml @@ -4,5 +4,6 @@ steps: - agents: provider: "gcp" command: .buildkite/scripts/pipeline_test.sh + if: build.branch != "main" # We're skipping testing commits in main for now to maintain parity with previous Jenkins setup artifact_paths: - "cypress/screenshots/**/*.png"