[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: another workaround for a complex system

Holger Levsen holger at moszumanska.debian.org
Tue Mar 17 12:06:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit c5b30d4eea758cac742d0673cd73188686c61d74
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Mar 17 13:04:02 2015 +0100

    reproducible: another workaround for a complex system
---
 bin/reproducible_html_graphs.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 1b12418..8d5fabc 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -131,9 +131,13 @@ update_notes_stats() {
 		echo "Please investigate and fix!"
 		exit 1
 	elif [ ! -f ${NOTES_GIT_PATH}/packages.yml ] || [ ! -f ${NOTES_GIT_PATH}/issues.yml ] ; then
-		echo "Warning: ${NOTES_GIT_PATH}/packages.yml or issues.yml does not exist, something has changed in notes.git it seems."
-		echo "Please investigate and fix!"
-		exit 1
+		# retry. sometimes these files vanish for a moment, probably when jenkins automatically updates the clones or such.
+		sleep 5
+		if [ ! -f ${NOTES_GIT_PATH}/packages.yml ] || [ ! -f ${NOTES_GIT_PATH}/issues.yml ] ; then
+			echo "Warning: ${NOTES_GIT_PATH}/packages.yml or issues.yml does not exist, something has changed in notes.git it seems."
+			echo "Please investigate and fix!"
+			exit 1
+		fi
 	fi
 	NOTES=$(grep -c -v "^ " ${NOTES_GIT_PATH}/packages.yml)
 	ISSUES=$(grep -c -v "^ " ${NOTES_GIT_PATH}/issues.yml)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list