eclair/analyze.sh: Generate top-level index.html linking to various reports
Similar to how it's done for the delta job. In this case, motivation is to
provide link to report by MISRA strictness (Mandatory/Required/Advisory).
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ib3995abe989d59aac05912d046f6bcec5519bed6
diff --git a/eclair/analyze.sh b/eclair/analyze.sh
index e5e52b7..5a5b9a5 100755
--- a/eclair/analyze.sh
+++ b/eclair/analyze.sh
@@ -82,3 +82,21 @@
# Compress database to take less disk space in Jenkins archive
xz ${PROJECT_ECD}
+
+
+cat <<EOF >index.html
+<html>
+<body>
+<h1>MISRA reports</h1>
+
+<p>
+TF-A Config: ${TF_CONFIG}
+CI Build: <a href="${BUILD_URL}">${BUILD_URL}</a>
+</p>
+
+<li><a href="ECLAIR/full_txt/">Full TXT report</a>
+<li><a href="ECLAIR/full_html/index.html">Full HTML report</a>
+<li><a href="ECLAIR/full_html/by_service.html#strictness/service/first_file&strictness">Report by issue strictness (Mandatory/Required/Advisory) (HTML).</a>
+</body>
+</html>
+EOF