summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-09-24 07:50:07 +0000
committerHolger Levsen <holger@layer-acht.org>2015-09-24 14:50:12 +0200
commit903299b436ed880da45525fc3ef69d2f44b08003 (patch)
treee3463e0b72ab213ec36ddb2a1ed2c8d1fa1a8f1a /bin
parentc395a3f7963987066beafed83c0433eff96db997 (diff)
downloadjenkins.debian.net-903299b436ed880da45525fc3ef69d2f44b08003.tar.xz
reproducible: _build: also empty the builder field from the db when cleaning up stale builds
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 1 insertions, 1 deletions
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