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/05 19:13:50 UTC

[sling-whiteboard] 02/02: Updated to support maven releases

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

commit 2599270c39af1401e9708f073cf79b248564d60c
Author: Dan Klco <dk...@apache.org>
AuthorDate: Tue Jun 5 15:13:37 2018 -0400

    Updated to support maven releases
---
 gh-badge-script/add-badges.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gh-badge-script/add-badges.sh b/gh-badge-script/add-badges.sh
index 723ac19..f181c8f 100755
--- a/gh-badge-script/add-badges.sh
+++ b/gh-badge-script/add-badges.sh
@@ -47,9 +47,12 @@ function update_badges () {
     prepend
     
     MAVEN_BADGE_RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" https://maven-badges.herokuapp.com/maven-central/org.apache.sling/$ARTIFACT_ID/badge.svg)
-    if [ "$BUILD_RESPONSE" = "200" ]; then
+    if [ "$MAVEN_BADGE_RESPONSE" = "200" ]; then
+        echo "Adding Maven release badge for $ARTIFACT_ID"
         LINE=" [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.sling/$ARTIFACT_ID/badge.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.sling%22%20a%3A%22$ARTIFACT_ID%22)"
         prepend
+    else
+        echo "No Maven release found for $ARTIFACT_ID"
     fi
     
     TEST_CONTENTS=$(curl -L https://img.shields.io/jenkins/t/https/builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8.svg)
@@ -132,4 +135,4 @@ else
     REPO=$SLING_DIR/$PROJECT
     handle_repo
 fi
-echo "\n\nBadge Update Complete!"
\ No newline at end of file
+printf "\n\nBadge Update Complete!"
\ No newline at end of file

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