You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/07/30 11:34:39 UTC

[sling-site] branch master updated: SLING-10691 - display build badges on the repolist page

This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 55a4868  SLING-10691 - display build badges on the repolist page
55a4868 is described below

commit 55a48687903860f0d388701410eeb32caad21373
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Jul 30 13:33:51 2021 +0200

    SLING-10691 - display build badges on the repolist page
---
 src/main/jbake/assets/res/css/site.css |  7 +++++++
 src/main/jbake/content/repolist.md     |  6 ++++++
 src/main/jbake/templates/repolist.tpl  | 15 ++++++++++++---
 3 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/src/main/jbake/assets/res/css/site.css b/src/main/jbake/assets/res/css/site.css
index 7f40658..01bea2c 100644
--- a/src/main/jbake/assets/res/css/site.css
+++ b/src/main/jbake/assets/res/css/site.css
@@ -143,4 +143,11 @@ code {
 
 .digestLinks {
     font-size: 80%;
+}
+
+ul.repolist {
+    list-style-type: none;
+    color: #060;
+    margin: 0;
+    padding: 0;
 }
\ No newline at end of file
diff --git a/src/main/jbake/content/repolist.md b/src/main/jbake/content/repolist.md
index 5dbc070..1d04674 100644
--- a/src/main/jbake/content/repolist.md
+++ b/src/main/jbake/content/repolist.md
@@ -11,6 +11,12 @@ the [sling-aggregator](https://github.com/apache/sling-aggregator) project, wher
 you can also find instructions on how to checkout all repositories using the
 `repo` tool.
 
+The colored balls indicate the build status using the Jenkins conventions: blue is
+a stable build, orange is unstable, red means failure and grey indicates a disabled build.
+
+As I write this, many builds are unstable due to [SLING-10691](https://issues.apache.org/jira/browse/SLING-10691),
+the Sonar analysis failing with Java 11 for older modules.
+
 If you're unsure about the status of one of these repositories please ask on our dev list.
 
 We also have specific documentation about some of these modules on the
diff --git a/src/main/jbake/templates/repolist.tpl b/src/main/jbake/templates/repolist.tpl
index 96a1fcc..3a27384 100644
--- a/src/main/jbake/templates/repolist.tpl
+++ b/src/main/jbake/templates/repolist.tpl
@@ -64,11 +64,20 @@ layout 'layout/main.tpl', true,
                 }*.each() {
                     p -> 
                     li(class:"module") {
-                        a(href:"${config.sling_github_baseURL}${p.attributes().name}") {
-                            yield("${p.attributes().path}")
+                        a(
+                            class:"buildBadge", 
+                            title:"build details for ${p.attributes().path}",
+                            href:"https://ci-builds.apache.org/job/Sling/job/modules/job/sling-${p.attributes().path}/job/master/"
+                        ) {
+                            img(src:"https://ci-builds.apache.org/job/Sling/job/modules/job/sling-${p.attributes().path}/job/master/badge/icon?style=ball-24x24")
                         }
+                        yield(" ")
                         span(class:"description") {
-                            yield(" - ${p.attributes().description}")
+                            yield("${p.attributes().description}")
+                        }
+                        yield(" - ")
+                        a(href:"${config.sling_github_baseURL}${p.attributes().name}") {
+                            yield("${p.attributes().path}")
                         }
                     }
                     newLine()