You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/06/08 15:44:30 UTC

[sling-whiteboard] branch master updated: Adding caching to the shields.io badges and fixing the javadoc check for individual badges

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 199eb46  Adding caching to the shields.io badges and fixing the javadoc check for individual badges
199eb46 is described below

commit 199eb466d31a751de981e66384b744977148ada4
Author: Dan Klco <dk...@apache.org>
AuthorDate: Fri Jun 8 11:44:18 2018 -0400

    Adding caching to the shields.io badges and fixing the javadoc check for individual badges
---
 gh-badge-script/add-badges.sh                | 2 +-
 gh-badge-script/generate-aggregator-table.sh | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gh-badge-script/add-badges.sh b/gh-badge-script/add-badges.sh
index 68fc5e4..b7b8aab 100755
--- a/gh-badge-script/add-badges.sh
+++ b/gh-badge-script/add-badges.sh
@@ -64,7 +64,7 @@ function update_badges () {
     
     if [[ ! -z $ARTIFACT_ID ]]; then
         JAVADOC_BADGE_RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" https://www.javadoc.io/badge/org.apache.sling/$ARTIFACT_ID.svg)
-        if [ $JAVADOC_BADGE_RESPONSE = "200" ]; then
+        if [[ $JAVADOC_BADGE_RESPONSE != "404" ]]; then
             echo "Adding Javadoc badge for $ARTIFACT_ID"
             LINE=" [![JavaDocs](https://www.javadoc.io/badge/org.apache.sling/$ARTIFACT_ID.svg)](https://www.javadoc.io/doc/org.apache.sling/$ARTIFACT_ID)"
             prepend
diff --git a/gh-badge-script/generate-aggregator-table.sh b/gh-badge-script/generate-aggregator-table.sh
index fd97262..cce663a 100755
--- a/gh-badge-script/generate-aggregator-table.sh
+++ b/gh-badge-script/generate-aggregator-table.sh
@@ -77,7 +77,7 @@ function add_repo () {
             echo "No tests found for $REPO_NAME"
         else
             echo "Adding test badge for $REPO_NAME"
-            LINE="&#32;[![Test Status](https://img.shields.io/jenkins/t/https/builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8.svg)](https://builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8/test_results_analyzer/)"
+            LINE="&#32;[![Test Status](https://img.shields.io/jenkins/t/https/builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8.svg?longCache=true)](https://builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8/test_results_analyzer/)"
             write_data
         fi
         
@@ -86,7 +86,7 @@ function add_repo () {
             echo "No coverage reports found for $REPO_NAME"
         else
             echo "Adding coverage badge for $REPO_NAME"
-            LINE="&#32;[![Coverage Status](https://img.shields.io/jenkins/c/https/builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8.svg)](https://builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8/)"
+            LINE="&#32;[![Coverage Status](https://img.shields.io/jenkins/c/https/builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8.svg?longCache=true)](https://builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8/)"
             write_data
         fi
         

-- 
To stop receiving notification emails like this one, please contact
dklco@apache.org.