Skip to content

Commit

Permalink
ci(release): run DRA for main/staging only if ELASTIC_QUALIFIER is …
Browse files Browse the repository at this point in the history
…set (#15288)

(cherry picked from commit a2a2866)
  • Loading branch information
v1v authored and mergify[bot] committed Jan 20, 2025
1 parent a93a817 commit 87af920
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .buildkite/scripts/dra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 87af920

Please sign in to comment.