Skip to content

Commit

Permalink
minor: attempt to fix CI failure due to presense/absense of some html…
Browse files Browse the repository at this point in the history
… tags
  • Loading branch information
romani committed Dec 6, 2023
1 parent b8f50f6 commit c21ab8f
Show file tree
Hide file tree
Showing 2 changed files with 1,344 additions and 1,344 deletions.
6 changes: 3 additions & 3 deletions .ci/run-link-check-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ OPTION=$1

echo "------------ grep of linkcheck.html--BEGIN"
LINKCHECK_ERRORS=$(grep -E "doesn't exist|externalLink" target/site/linkcheck.html \
| grep -v 'Read timed out' | sed 's/<\/table><\/td><\/tr>//g' || true)
| grep -v 'Read timed out' | sed 's/<\/table><\/td><\/tr>//g' \
| sed 's/<td><i>//g' | sed 's/<\/i><\/td><\/tr>//g' | sed 's/<\/table><\/section>//g' || true)

if [[ $OPTION == "--skip-external" ]]; then
echo "Checking internal (checkstyle website) links only."
Expand All @@ -25,8 +26,7 @@ else
echo "$LINKCHECK_ERRORS" | sort > .ci-temp/linkcheck-errors-sorted.txt
fi

sort config/linkcheck-suppressions.txt | sed 's/<\/table><\/td><\/tr>//g' \
> .ci-temp/linkcheck-suppressions-sorted.txt
sort config/linkcheck-suppressions.txt > .ci-temp/linkcheck-suppressions-sorted.txt

# Suppressions exist until https://github.com/checkstyle/checkstyle/issues/11572
diff -u .ci-temp/linkcheck-suppressions-sorted.txt .ci-temp/linkcheck-errors-sorted.txt || true
Expand Down
Loading

0 comments on commit c21ab8f

Please sign in to comment.