summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_build.sh5
1 files changed, 5 insertions, 0 deletions
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