From 903299b436ed880da45525fc3ef69d2f44b08003 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 24 Sep 2015 07:50:07 +0000 Subject: reproducible: _build: also empty the builder field from the db when cleaning up stale builds --- bin/reproducible_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index b2dbead8..ff3c177b 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -428,7 +428,7 @@ init_package_build() { # stale_builds.txt is mailed once a day by reproducible_maintenance.sh echo "$(date -u) - stale builds found, cleaning db from these:" | tee -a /var/lib/jenkins/stale_builds.txt cat $BAD_BUILDS | tee -a /var/lib/jenkins/stale_builds.txt - sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='' WHERE builder LIKE '${BUILDER_PREFIX}%'" + sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='', builder='' WHERE builder LIKE '${BUILDER_PREFIX}%'" echo >> /var/lib/jenkins/stale_builds.txt fi rm -f $BAD_BUILDS -- cgit v1.2.3-70-g09d2