Skip to content

Commit

Permalink
Merge pull request #157 from goodspark/patch-1
Browse files Browse the repository at this point in the history
Add an annotation when report is too large
  • Loading branch information
pzeballos authored Feb 9, 2022
2 parents 214ea6b + e54fda8 commit e40811a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hooks/command
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ cat "$annotation_path"
if grep -q "<details>" "$annotation_path"; then
if ! check_size; then
echo "--- :warning: Failures too large to annotate"
echo "The failures are too large to create a build annotation. Please inspect the failed JUnit artifacts manually."
msg="The failures are too large to create a build annotation. Please inspect the failed JUnit artifacts manually."
echo "$msg"
echo "$msg" | buildkite-agent annotate --context "${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_CONTEXT:-junit}" --style "$annotation_style"
else
echo "--- :buildkite: Creating annotation"
# shellcheck disable=SC2002
Expand Down

0 comments on commit e40811a

Please sign in to comment.