Skip to content

Commit bdb383e

Browse files
added trigger annotation (elastic#40990) (elastic#41004)
(cherry picked from commit 40743f8) Co-authored-by: Olga Naydyonock <olga.naidjonoka@elastic.co>
1 parent 55cc5fe commit bdb383e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.buildkite/hooks/pre-command

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ set -euo pipefail
66
# https://buildkite.com/docs/pipelines/managing-log-output#redacted-environment-variables
77
PRIVATE_CI_GCS_CREDENTIALS_PATH="kv/ci-shared/platform-ingest/gcp-platform-ingest-ci-service-account"
88

9+
if [[ "${BUILDKITE_LABEL:-}" == *"Pipeline upload"* || "${BUILDKITE_LABEL:-}" == *"Upload Pipeline"* ]]; then
10+
11+
if [[ "${GITHUB_PR_TRIGGER_COMMENT:-}" != "" ]]; then
12+
buildkite-agent annotate "**No changes.** Triggered from comment: _${GITHUB_PR_TRIGGER_COMMENT}_" --style "info" --context 'ctx-info'
13+
fi
14+
fi
15+
916
if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats-xpack-packetbeat" && "$BUILDKITE_STEP_KEY" == *"system-tests"* ]]; then
1017
PRIVATE_CI_GCS_CREDENTIALS_SECRET=$(retry -t 5 -- vault kv get -field plaintext -format=json ${PRIVATE_CI_GCS_CREDENTIALS_PATH})
1118
export PRIVATE_CI_GCS_CREDENTIALS_SECRET

0 commit comments

Comments
 (0)