From bf0d118e0defa415a972a8b325765e2d259bdb6f Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 3 Jul 2012 14:55:41 -0700 Subject: [PATCH] Log git fetch failures to syslog. In gerrit-git-prep.sh log git fetch failures to local syslog. Syslog entries are tagged 'gerrit-git-prep' and have a priority of user.warning. Change-Id: I01f581a0a0442c65672ef8cb654e1a764f683eea --- modules/jenkins_slave/files/slave_scripts/gerrit-git-prep.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/jenkins_slave/files/slave_scripts/gerrit-git-prep.sh b/modules/jenkins_slave/files/slave_scripts/gerrit-git-prep.sh index 5535fdfdfc..ee9bb8fc6e 100755 --- a/modules/jenkins_slave/files/slave_scripts/gerrit-git-prep.sh +++ b/modules/jenkins_slave/files/slave_scripts/gerrit-git-prep.sh @@ -44,11 +44,13 @@ function merge_change { until git fetch https://$SITE/p/$PROJECT $REFSPEC do COUNT=$(($COUNT + 1)) + logger -p user.warning -t 'gerrit-git-prep' FAILED: git fetch https://$SITE/p/$PROJECT $REFSPEC COUNT: $COUNT if [ $COUNT -eq $MAX_ATTEMPTS ] then break fi SLEEP_TIME=$((30 + $RANDOM % 60)) + logger -p user.warning -t 'gerrit-git-prep' sleep $SLEEP_TIME sleep $SLEEP_TIME done