Commit a395b84f authored by Mattia Rizzolo's avatar Mattia Rizzolo

reproducible: fix the auto-offline thing by checking content of the permalinks...

reproducible: fix the auto-offline thing by checking content of the permalinks file instead of following the lastSuccessfulBuild link that is not being updated anymore.  bad jenkins.
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent dcdaea8e
......@@ -207,14 +207,14 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
esac
cd $i/builds
LAST=$(ls -rt1 | tail -1)
GOOD=$(basename $(readlink -f lastSuccessfulBuild))
GOOD=$(awk '/^lastSuccessfulBuild/ {print $2}' permalinks)
if [ "$LAST" = "$GOOD" ] ; then
DIFF=0
else
let DIFF=$LAST-$GOOD || DIFF=-1
fi
if [ $DIFF -eq -1 ] ; then
echo "Problems analysing $i build logs, ignoring $NODE."
echo "Warning: Problems analysing $i build logs, ignoring $NODE."
# either the diff is greater than $MAXDIFF (=the last $MAXDIFF job runs failed)
# or the last successful run is older than an hour (=a job is still running/hanging)
elif [ $DIFF -gt $MAXDIFF ] || [ $LAST -ot $DUMMY_FILE ] ; then
......
......@@ -32,3 +32,4 @@ warning /Warning: schroots older than/
warning /Warning: SQL query .+ failed.$/
warning /Warning: systemd is reporting errors/
warning /Warning: .+ has wrong MTU, please tell the jenkins admins to fix this./
warning /Warning: Problems analysing/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment