Coundown while waiting in distribution-check
[releng/builder.git] / jjb / integration / include-raw-integration-distribution-check.sh
index f97e76bdebf8427131818e1b539916921b6fc348..17fd4aefabf40883ed31c3c46000cf5e4ce0b9c5 100644 (file)
@@ -83,9 +83,17 @@ while true; do
 done
 
 echo "loading many features at once.  Need to allow time for problems to show up in logs.  cool down for 5 min ..."
-sleep 300
+COUNT="300"
+while true; do
+    if (( "${COUNT}" <= "0" )); then
+        break
+    fi
+    echo "${COUNT} seconds yet to wait..."
+    sleep 10
+    COUNT=$(( ${COUNT} - 10 ))
+done
 
-echo "Checking OSGi bundles..."
+echo "Checking OSGi bundles..."
 # sshpass seems to fail with new karaf version
 # sshpass -p karaf ${WORKSPACE}/${BUNDLEFOLDER}/bin/client -u karaf 'bundle:list'