From 3a6130a9813d8f11bcccba5b646ee19d9b63619f Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Mon, 16 Feb 2015 00:49:34 +0100 Subject: reproducible: notify the IRC chan when a package successfully buit reproducibly in the past becomes unreproducible --- bin/reproducible_build.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index e291e2f5..9022f560 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -95,6 +95,11 @@ call_debbindiff() { else echo "." | tee -a ${RBUILDLOG} fi + OLD_STATUS=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT status FROM source_packages WHERE name=\"${SRCPACKAGE}\"") + if [ "${OLD_STATUS}" == "reproducible" ]; then + MESSAGE="${SRCPACKAGE} becomes unreproducible. It was successfully built reproducibly built in the past. Plese investigate ${REPRODUCIBLE_URL}/${SRCPACKAGE}" + kgb-client --conf /srv/jenkins/kgb/debian-reproducible.conf --relay-msg "$MESSAGE" || true # don't fail the whole job + fi sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"unreproducible\", \"$DATE\")" unschedule_from_db fi -- cgit v1.2.3-70-g09d2