Skip to content

Commit

Permalink
added trigger annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Sep 25, 2024
1 parent 378b796 commit faccafd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ 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"

if [[ "${BUILDKITE_LABEL:-}" == *"Pipeline upload"* || "${BUILDKITE_LABEL:-}" == *"Upload Pipeline"* ]]; then

if [[ "${GITHUB_PR_TRIGGER_COMMENT:-}" != "" ]]; then
buildkite-agent annotate "No changes. Triggered from comment: ${GITHUB_PR_TRIGGER_COMMENT}" --style "info"
fi
fi

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
Expand Down

0 comments on commit faccafd

Please sign in to comment.