Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deleted setenv.sh
Browse files Browse the repository at this point in the history
oakrizan committed Jun 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6b5f92a commit 8727678
Showing 2 changed files with 0 additions and 75 deletions.
21 changes: 0 additions & 21 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -6,27 +6,6 @@ set -euo pipefail
# https://buildkite.com/docs/pipelines/managing-log-output#redacted-environment-variables
PRIVATE_CI_GCS_CREDENTIALS_PATH="kv/ci-shared/platform-ingest/gcp-platform-ingest-ci-service-account"

ENABLED_BEATS_PIPELINES_SLUGS=(
"auditbeat"
"heartbeat"
"filebeat"
"beats-metricbeat"
"beats-winlogbeat"
"beats-xpack-winlogbeat"
"beats-xpack-dockerlogbeat"
"beats-xpack-auditbeat"
"beats-xpack-metricbeat"
"beats-xpack-heartbeat"
"deploy-k8s"
)

for slug in "${ENABLED_BEATS_PIPELINES_SLUGS[@]}"; do
if [[ "$BUILDKITE_PIPELINE_SLUG" == "$slug" ]]; then
source .buildkite/scripts/setenv.sh
break
fi
done

if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats-xpack-packetbeat" && "$BUILDKITE_STEP_KEY" == *"system-tests"* ]]; then
PRIVATE_CI_GCS_CREDENTIALS_SECRET=$(retry -t 5 -- vault kv get -field plaintext -format=json ${PRIVATE_CI_GCS_CREDENTIALS_PATH})
export PRIVATE_CI_GCS_CREDENTIALS_SECRET
54 changes: 0 additions & 54 deletions .buildkite/scripts/setenv.sh

This file was deleted.

0 comments on commit 8727678

Please sign in to comment.