From ae09e8cba1bb13a70fa57ec54fc32bf72f59de6f Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Tue, 11 Jun 2024 11:53:32 -0500 Subject: [PATCH 1/2] [ci] Collapse list of agents in annotiation --- .buildkite/scripts/lifecycle/pre_command.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.buildkite/scripts/lifecycle/pre_command.sh b/.buildkite/scripts/lifecycle/pre_command.sh index 0ac12e62a7b0d..b89ce78c5c9bc 100755 --- a/.buildkite/scripts/lifecycle/pre_command.sh +++ b/.buildkite/scripts/lifecycle/pre_command.sh @@ -22,3 +22,11 @@ if [[ "$(curl -is metadata.google.internal || true)" ]]; then echo "gcloud compute ssh --tunnel-through-iap --project elastic-kibana-ci --zone \"$(curl -sH Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/zone)\" \"$(curl -sH Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/name)\"" echo "" fi + +if [[ "${BUILDKITE_LABEL:-}" == *"Run Dynamic Pipeline"* || "${BUILDKITE_LABEL:-}" == *"Upload Pipeline"* ]]; then + cat << EOF | buildkite-agent annotate --context "ctx-gobld-metrics" --style "info" +
+ +Agent information from gobld +EOF +fi \ No newline at end of file From 931c5c980cb14bf41fe7f4e5e482338873d5b6c1 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Tue, 11 Jun 2024 11:54:29 -0500 Subject: [PATCH 2/2] fix --- .buildkite/scripts/lifecycle/pre_command.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/scripts/lifecycle/pre_command.sh b/.buildkite/scripts/lifecycle/pre_command.sh index b89ce78c5c9bc..c0b08f474bbd2 100755 --- a/.buildkite/scripts/lifecycle/pre_command.sh +++ b/.buildkite/scripts/lifecycle/pre_command.sh @@ -29,4 +29,4 @@ if [[ "${BUILDKITE_LABEL:-}" == *"Run Dynamic Pipeline"* || "${BUILDKITE_LABEL:- Agent information from gobld EOF -fi \ No newline at end of file +fi