From f3d26e20ee665b18c785399ec6131f9d39d35cc0 Mon Sep 17 00:00:00 2001 From: Arnstein Ressem Date: Wed, 27 Nov 2024 13:36:15 +0100 Subject: [PATCH 1/2] Format annotaion in markdown. --- .buildkite/execute.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/execute.sh b/.buildkite/execute.sh index 111167b28ea8..bd5525d8103d 100755 --- a/.buildkite/execute.sh +++ b/.buildkite/execute.sh @@ -17,7 +17,7 @@ function report() echo "Reporting...." if [[ $BUILDKITE == true ]]; then if [[ -f $LOG_DIR/error-$STEP.log ]]; then - tail -100 "$LOG_DIR/error-$STEP.log" | head -80 \ + (echo '```term'; tail -100 "$LOG_DIR/error-$STEP.log" | head -80; echo '```') \ | buildkite-agent annotate --style 'error' --context 'ctx-error' fi fi From a3bbc90a3bb2388a8d594bc003d52dcb169ba10e Mon Sep 17 00:00:00 2001 From: Arnstein Ressem Date: Wed, 27 Nov 2024 13:42:53 +0100 Subject: [PATCH 2/2] Ignore SC error --- .buildkite/execute.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.buildkite/execute.sh b/.buildkite/execute.sh index bd5525d8103d..f2574185d851 100755 --- a/.buildkite/execute.sh +++ b/.buildkite/execute.sh @@ -17,6 +17,7 @@ function report() echo "Reporting...." if [[ $BUILDKITE == true ]]; then if [[ -f $LOG_DIR/error-$STEP.log ]]; then + # shellcheck disable=2016 (echo '```term'; tail -100 "$LOG_DIR/error-$STEP.log" | head -80; echo '```') \ | buildkite-agent annotate --style 'error' --context 'ctx-error' fi