[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible: build: notify the irc channel in case of reproducible → ftbfs packages

Holger Levsen holger at moszumanska.debian.org
Sat Jul 4 09:51:31 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 b3c9c63cfa0998420612ea4b1f914c2d9465c40f
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Fri Jun 19 13:46:20 2015 +0000

    reproducible: build: notify the irc channel in case of reproducible → ftbfs packages
---
 bin/reproducible_build.sh | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index a33721f..288813e 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -112,6 +112,17 @@ update_db_and_html() {
 	fi
 	local OLD_STATUS=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT status FROM results WHERE package_id='${SRCPKGID}'")
 	# notification for changing status
+	if [ "${OLD_STATUS}" = "reproducible" ] ; then
+		if [ "$STATUS" = "unreproducible" ] || [ "$STATUS" = "FTBFS" ] ; then
+			MESSAGE="status changed from reproducible → ${STATUS}. ${REPRODUCIBLE_URL}/${SUITE}/${ARCH}/${SRCPACKAGE}"
+			echo "\n$MESSAGE" | tee -a ${RBUILDLOG}
+			irc_message "$MESSAGE"
+			# disable ("regular") irc notification unless it's due to debbindiff problems
+			if [ ! -z "$NOTIFY" ] && [ "$NOTIFY" != "debbindiff" ] ; then
+				NOTIFY=""
+			fi
+		fi
+	fi
 	if [ "$OLD_STATUS" != "$STATUS" ] && [ "$NOTIFY_MAINTAINER" -eq 1 ]; then
 		echo "More information on $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE, feel free to reply to this email to get more help." | \
 			mail -s "$SRCPACKAGE status changed: $OLD_STATUS -> $STATUS" \
@@ -184,18 +195,7 @@ handle_ftbr() {
 		echo "$(date) - $DBDVERSION produced no output (which is strange)." | tee -a $RBUILDLOG
 	fi
 	calculate_build_duration
-	local OLD_STATUS=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT status FROM results WHERE package_id='${SRCPKGID}'")
 	update_db_and_html "unreproducible"
-	# notification for changing status
-	if [ "${OLD_STATUS}" = "reproducible" ]; then
-		MESSAGE="status changed from reproducible → unreproducible. ${REPRODUCIBLE_URL}/${SUITE}/${ARCH}/${SRCPACKAGE}"
-		echo "\n$MESSAGE" | tee -a ${RBUILDLOG}
-		irc_message "$MESSAGE"
-		# disable ("regular") irc notification unless it's due to debbindiff problems
-		if [ ! -z "$NOTIFY" ] && [ "$NOTIFY" != "debbindiff" ] ; then
-			NOTIFY=""
-		fi
-	fi
 }
 
 handle_reproducible() {

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