Annotate testnet buildkite logs with blockexplorer URL (#3964)

automerge
This commit is contained in:
Michael Vines 2019-04-24 08:09:37 -07:00 committed by Grimes
parent 1661a7a55f
commit 3eed6a6090
1 changed files with 18 additions and 0 deletions

View File

@ -181,6 +181,20 @@ else
fi
fi
annotate() {
${BUILDKITE:-false} && {
buildkite-agent annotate "$@"
}
}
annotateBlockexplorerUrl() {
declare blockstreamer=${blockstreamerIpList[0]}
if [[ -n $blockstreamer ]]; then
annotate --style info --context blockexplorer-url "Block explorer: http://$blockstreamer/"
fi
}
build() {
supported=("18.04")
declare MAYBE_DOCKER=
@ -332,6 +346,8 @@ sanity() {
declare bootstrapLeader=${fullnodeIpList[0]}
declare blockstreamer=${blockstreamerIpList[0]}
annotateBlockexplorerUrl
echo "--- Sanity: $bootstrapLeader"
(
set -x
@ -462,6 +478,8 @@ start() {
$metricsWriteDatapoint "testnet-deploy net-fullnodes-started=1"
additionalNodeDeployTime=$SECONDS
annotateBlockexplorerUrl
if $updateNodes; then
for ipAddress in "${clientIpList[@]}"; do
stopNode "$ipAddress"