From a2a2866709afc0cedaaf11d7a3d47977e7cda5b4 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 20 Jan 2025 11:49:55 +0100 Subject: [PATCH] ci(release): run DRA for main/staging only if `ELASTIC_QUALIFIER` is set (#15288) --- .buildkite/scripts/dra.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.buildkite/scripts/dra.sh b/.buildkite/scripts/dra.sh index 28c9e547f9..5788f6e07e 100755 --- a/.buildkite/scripts/dra.sh +++ b/.buildkite/scripts/dra.sh @@ -110,7 +110,14 @@ dra() { if [[ "${TYPE}" == "staging" ]]; then if [[ "${DRA_BRANCH}" != "8.x" ]]; then echo "${DRA_BRANCH} is not '8.x'" - dra "${TYPE}" "$dra_command" + if [[ "${DRA_BRANCH}" == "main" ]] ; then + # NOTE: qualifier is needed for main/staging at the moment. Skip builds if no ELASTIC_QUALIFIER + if [[ -n "${ELASTIC_QUALIFIER}" ]]; then + dra "${TYPE}" "$dra_command" + fi + else + dra "${TYPE}" "$dra_command" + fi fi else # NOTE: qualifier is not needed for snapshots, let's unset it.