diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-06-19 13:46:20 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-04 11:51:08 +0200 |
commit | b3c9c63cfa0998420612ea4b1f914c2d9465c40f (patch) | |
tree | ee650e9028269a0f68584e340e71e04e7b31d6f5 /bin | |
parent | 24c10aca3a4450ad931667c67ce1f2d59773426f (diff) | |
download | jenkins.debian.net-b3c9c63cfa0998420612ea4b1f914c2d9465c40f.tar.xz |
reproducible: build: notify the irc channel in case of reproducible → ftbfs packages
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index a33721fc..288813ec 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() { |