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 2019/05/13 19:04:59 UTC

[sling-whiteboard] branch master updated: Updating to ignore files in the release folder and mark failures to start bundles as errors

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 c838717  Updating to ignore files in the release folder and mark failures to start bundles as errors
c838717 is described below

commit c838717abfcb20ab2a96042fefeaaf96e2be380d
Author: Dan Klco <dk...@apache.org>
AuthorDate: Mon May 13 15:04:48 2019 -0400

    Updating to ignore files in the release folder and mark failures to start bundles as errors
---
 release-validator/run.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/release-validator/run.sh b/release-validator/run.sh
index 6f05d76..beaecd2 100644
--- a/release-validator/run.sh
+++ b/release-validator/run.sh
@@ -95,8 +95,7 @@ done
 
 prints "Build(s) Successful!" "success"
 
-if [ "$HAS_BUNDLE" = true ];
-then
+if [ "$HAS_BUNDLE" = true ]; then
   prints "Bundles found, starting Apache Sling Starter..." "info"
   
   mkdir run
@@ -141,7 +140,10 @@ then
   prints "Installing bundles..." "info"
   for RELEASE_FOLDER in tmp/${RELEASE_ID}/org/apache/sling/*
   do
-  
+    if [[ -f $RELEASE_FOLDER ]]; then
+      continue
+    fi
+    
     MVN_PACKAGING=$(mvn/bin/mvn -q -Dexec.executable=echo  -Dexec.args='${project.packaging}' --non-recursive  exec:exec -f $RELEASE_FOLDER/**/*.pom)
     if [[ "$MVN_PACKAGING" = "bundle" ]]; then
     
@@ -169,7 +171,7 @@ then
       done
       
       if [[ "$STATE" != "Active" ]]; then
-        prints "Failed to start $MVN_ARTIFACT_ID, current state: $STATE"
+        prints "Failed to start $MVN_ARTIFACT_ID, current state: $STATE" "error"
         printf "Imports in error state:\n$IMPORTS_IN_ERROR\n\n"
         BUNDLE_SUCCESS=false
       fi