[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: manual testing using these sql commands works, but not in _build.sh - desperate attempt to make it work

Holger Levsen holger at moszumanska.debian.org
Sat Sep 26 11:15:36 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 00a635b63094060db42c1d902b7f2f4df69492c5
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Sep 26 13:15:16 2015 +0200

    reproducible: manual testing using these sql commands works, but not in _build.sh - desperate attempt to make it work
---
 bin/reproducible_build.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 5499f46..c53ce92 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -394,6 +394,7 @@ choose_package() {
 		echo "ok, $SRCPACKAGE is not building anywhere…"
 		# try to update the schedule with our build attempt, then check no else did it, if so, abort
 		sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='$DATE', builder='$BUILDER' WHERE package_id='$SRCPKGID' AND date_build_started='' AND (builder='' OR builder='TBD')"
+		sleep 2
 		local UPDATERESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT date_build_started FROM schedule WHERE package_id='$SRCPKGID' AND date_build_started='$DATE' AND builder='$BUILDER'")
 		if [ -z "$UPDATERESULT" ] ; then
 			echo "hm, seems $SRCPACKAGE is building somewhere… failed to update the schedule table with our build ($SRCPKGID, $DATE, $BUILDER)."

-- 
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