Skip to content

Commit

Permalink
Disable DRY_RUN for 7.17 packaging on Buildkite (#39429)
Browse files Browse the repository at this point in the history
This commit is the counterpart of #39391 for the 7.17 branch and
disables the default DRY_RUN mode when running DRA packaging on
Buildkite for the 7.17 branch.

Relates:

- #39391
- elastic/ingest-dev#3095
  • Loading branch information
dliappis committed May 7, 2024
1 parent f487125 commit 31d4b5f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .buildkite/scripts/dra.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
#!/usr/bin/env bash

# TODO: uncomment out below when Jenkins packaging has been stopped
# if [[ "$DRY_RUN" == "true" ]]; then
# echo "~~~ Running in dry-run mode -- will NOT publish artifacts"
# DRY_RUN="--dry-run"
# else
# echo "~~~ Running in publish mode"
# DRY_RUN=""
# fi

# TODO: delete the conditional below (and replace it with the above, uncommented out, section) after Jenkins packaging has been stopped
if [[ "$DRY_RUN" == "false" ]]; then
echo "~~~ Running in publish mode"
DRY_RUN=""
else
if [[ "$DRY_RUN" == "true" ]]; then
echo "~~~ Running in dry-run mode -- will NOT publish artifacts"
DRY_RUN="--dry-run"
else
echo "~~~ Running in publish mode"
DRY_RUN=""
fi

set -euo pipefail
Expand Down

0 comments on commit 31d4b5f

Please sign in to comment.