# no configuration below this block
AMOUNT_TO_KEEP=15
+WARNING_TRESHOLD=10
LIVEBOOT_IMAGE_PATH="/srv/mirror/liveboot"
SECOND_PASS="$SECOND_PASS $DIRECTORY"
fi
done
+if [ $KEPT -gt $WARNING_TRESHOLD ] ; then
+ echo "Warning: $KEPT images being kept, while we can only keep $AMOUNT_TO_KEEP at maximum. Please delete some rejected images set to 'keep'. Ask Fabian for help, if needed."
+fi
for DIRECTORY in $SECOND_PASS ; do
echo -n "$DIRECTORY: "
if [ $KEPT -le $AMOUNT_TO_KEEP ] ; then
--- /dev/null
+# see https://wiki.jenkins-ci.org/display/JENKINS/Log+Parser+Plugin
+
+# ok despite warnings
+ok /not really/
+ok /.+Warning: Permanently added .+ (RSA) to the list of known hosts./
+
+# match line starting with 'error ', case-insensitive
+error /(?i)^error /
+
+# list of warnings here...
+warning /[Ww]arning/
+warning /WARNING/
+
+# create a quick access link to lines in the report containing 'INFO'
+info /INFO/
+