Skip to content

Commit

Permalink
[ci] Collapse list of agents in annotiation (#186009)
Browse files Browse the repository at this point in the history
Collapses the list of agents at the top of the Buildkite UI. Thanks to
`@brianseeders` for the fix.

Before:
https://buildkite.com/elastic/kibana-on-merge/builds/46264#annotation-ctx-gobld-metrics
  • Loading branch information
jbudz authored Jun 11, 2024
1 parent be6375d commit 642ceeb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .buildkite/scripts/lifecycle/pre_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
<details>
<summary>Agent information from gobld</summary>
EOF
fi

0 comments on commit 642ceeb

Please sign in to comment.