From 63614bcb84c751b42a3152445e763bea51e2792c Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 8 Sep 2016 14:51:02 +0100 Subject: [PATCH] JAL-2119 non-zero exit if any invalid links --- utils/HelpLinksChecker.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/HelpLinksChecker.java b/utils/HelpLinksChecker.java index 5ba9097..7b676cc 100644 --- a/utils/HelpLinksChecker.java +++ b/utils/HelpLinksChecker.java @@ -207,7 +207,11 @@ public class HelpLinksChecker System.out .println("External links not verified as internet not available"); } - + if (invalidInternalHrefCount > 0 || invalidExternalHrefCount > 0 + || invalidImageCount > 0 || invalidAnchorRefCount > 0) + { + System.exit(1); + } } /** -- 1.7.10.2