Skip to content

Commit

Permalink
fixed conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Feb 6, 2024
1 parent c8ef8ce commit 5249fb1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 57 deletions.
12 changes: 6 additions & 6 deletions .buildkite/auditbeat/scripts/package-step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set -euo pipefail
source .buildkite/env-scripts/util.sh

changeset="^auditbeat/
^go.mod
^pytest.ini
^dev-tools/
^libbeat/
^testing/
^\.buildkite/auditbeat/"
^go.mod
^pytest.ini
^dev-tools/
^libbeat/
^testing/
^\.buildkite/auditbeat/"

if are_files_changed "$changeset"; then
cat <<-EOF
Expand Down
16 changes: 6 additions & 10 deletions .buildkite/env-scripts/win-env.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#!/usr/bin/env bash

install_python_win() {
echo "PLATFORM TYPE: ${PLATFORM_TYPE}"
if [[ ${PLATFORM_TYPE} = MINGW* ]]; then
echo "Installing Python on Win"
choco install mingw -y
choco install python --version=3.11.0 -y
fi
}

install_python_win
echo "--- PLATFORM TYPE: ${PLATFORM_TYPE}"
if [[ ${PLATFORM_TYPE} = MINGW* ]]; then
echo "--- Installing Python on Win"
choco install mingw -y
choco install python --version=3.11.0 -y
fi
12 changes: 6 additions & 6 deletions .buildkite/filebeat/scripts/package-step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set -euo pipefail
source .buildkite/env-scripts/util.sh

changeset="^filebeat/
^go.mod
^pytest.ini
^dev-tools/
^libbeat/
^testing/
^\.buildkite/filebeat/"
^go.mod
^pytest.ini
^dev-tools/
^libbeat/
^testing/
^\.buildkite/filebeat/"

if are_files_changed "$changeset"; then
cat <<-EOF
Expand Down
20 changes: 1 addition & 19 deletions .buildkite/hooks/post-checkout
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail

Expand Down Expand Up @@ -51,21 +51,3 @@ git --no-pager log --format=%B -n 1

# Ensure buildkite groups are rendered
echo ""
#!/usr/bin/env bash

set -euo pipefail

source .buildkite/filebeat/scripts/pre-common.sh

if [[ "$BUILDKITE_PIPELINE_SLUG" == "filebeat" ]]; then
changeset="^filebeat/
^go.mod
^pytest.ini
^dev-tools/
^libbeat/
^testing/
^\.buildkite/filebeat/"

check_filebeat_changes "$changeset"
echo ":: FILEBEAT_CHANGESET=$FILEBEAT_CHANGESET ::"
fi
17 changes: 1 addition & 16 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@

set -euo pipefail

DOCKER_REGISTRY_SECRET_PATH="kv/ci-shared/platform-ingest/docker_registry_prod"

if [[ "$BUILDKITE_PIPELINE_SLUG" == "filebeat" ]]; then
if [[ "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" == "auditbeat" ]]; then
source .buildkite/env-scripts/env.sh
source .buildkite/env-scripts/util.sh
source .buildkite/env-scripts/win-env.sh

if [[ ${PLATFORM_TYPE} = MINGW* ]]; then
install_python_win
fi

if [[ -z "${GOLANG_VERSION-""}" ]]; then
export GOLANG_VERSION=$(cat "${WORKSPACE}/.go-version")
fi

if [[ "$BUILDKITE_STEP_KEY" == macos* ]]; then
ulimit -Sn 30000
fi
fi

if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats-metricbeat" ]]; then
Expand All @@ -29,8 +19,3 @@ if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats-metricbeat" ]]; then
exit 0
fi
fi

if [[ "$BUILDKITE_PIPELINE_SLUG" == "auditbeat" && "$BUILDKITE_STEP_KEY" == package* ]]; then
export DOCKER_USERNAME_SECRET=$(retry 5 vault kv get -field user "${DOCKER_REGISTRY_SECRET_PATH}")
export DOCKER_PASSWORD_SECRET=$(retry 5 vault kv get -field password "${DOCKER_REGISTRY_SECRET_PATH}")
fi

0 comments on commit 5249fb1

Please sign in to comment.