Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pazone committed Mar 21, 2024
1 parent 6ecea3a commit 4cf4039
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .buildkite/x-pack/elastic-agent/scripts/steps/dra-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@

set -uo pipefail

BEAT_VERSION=$(grep -oE '[0-9]+\.[0-9]+\.[0-9]+(\-[a-zA-Z]+[0-9]+)?' "libbeat/version/version.go")
BEAT_VERSION_FULL=$BEAT_VERSION
if [ "$DRA_WORKFLOW" == "snapshot" ]; then
SNAPSHOT="true"
BEAT_VERSION_FULL="${BEAT_VERSION}-SNAPSHOT"
fi

DRY_RUN="${DRA_DRY_RUN:=""}"
WORKFLOW="${DRA_WORKFLOW:=""}"
COMMIT="${DRA_COMMIT:="${BUILDKITE_COMMIT:=""}"}"
Expand All @@ -18,13 +11,14 @@ CI_DRA_ROLE_PATH="kv/ci-shared/release/dra-role"

# force main branch on PR's or it won't execute
# because the PR branch does not have a project folder in release-manager
if [[ "${BUILDKITE_PULL_REQUEST:="false"}" != "false" || "$BUILDKITE_BRANCH" == "xpack_agent_core_publish" ]]; then
if [[ "${BUILDKITE_PULL_REQUEST:="false"}" != "false" ]]; then
BRANCH=7.17
# DRY_RUN="--dry-run"
DRY_RUN="--dry-run"
echo "+++ Running in PR or test branch and setting branch 7.17 and --dry-run"
fi



if [[ -z "${WORKFLOW}" ]]; then
echo "+++ Missing DRA workflow";
exit 1
Expand Down

0 comments on commit 4cf4039

Please sign in to comment.