mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[CI] Add SSH info to agent debug logs (#129413)
This commit is contained in:
parent
036c926187
commit
50f80f44a8
3 changed files with 10 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
echo '--- Agent Debug Info'
|
||||
node .buildkite/scripts/lifecycle/print_agent_links.js || true
|
||||
|
||||
IS_TEST_EXECUTION_STEP="$(buildkite-agent meta-data get "${BUILDKITE_JOB_ID}_is_test_execution_step" --default '')"
|
||||
|
|
|
@ -26,8 +26,17 @@ retry 5 15 install_deps
|
|||
|
||||
cd ..
|
||||
|
||||
echo '--- Agent Debug/SSH Info'
|
||||
node .buildkite/scripts/lifecycle/print_agent_links.js || true
|
||||
|
||||
if [[ "$(curl -is metadata.google.internal || true)" ]]; then
|
||||
echo ""
|
||||
echo "To SSH into this agent, run:"
|
||||
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
|
||||
|
||||
|
||||
echo '--- Job Environment Setup'
|
||||
|
||||
# Set up a custom ES Snapshot Manifest if one has been specified for this build
|
||||
|
|
|
@ -30,7 +30,6 @@ const { BuildkiteClient } = require('kibana-buildkite-library');
|
|||
`?time=${startTime.getTime()}`,
|
||||
].join('');
|
||||
|
||||
console.log('--- Agent Debug Links');
|
||||
console.log('Agent Metrics:');
|
||||
console.log('\u001b]1339;' + `url='${METRICS_URL}'\u0007`);
|
||||
console.log('Agent Logs:');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue