[Qa-jenkins-scm] [jenkins.debian.net] 04/04: reproducible: build: print out status with the notification

Holger Levsen holger at moszumanska.debian.org
Mon Apr 27 15:27:25 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 f2cc5150abdd03da1d25b282cb01752d335e6793
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Fri Apr 10 11:59:00 2015 +0200

    reproducible: build: print out status with the notification
---
 bin/reproducible_build.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 43d6a27..55b6092 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -95,9 +95,9 @@ cleanup_all() {
 	if [ $SAVE_ARTIFACTS -eq 1 ] ; then save_artifacts ; fi
 	if [ "$NOTIFY" = "failure" ] ; then
 		echo "No artifacts were saved for this build." | tee -a ${RBUILDLOG}
-		irc_message "Check $REPRODUCIBLE_URL/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_${EVERSION}.rbuild.log and $BUILD_URL to find out why no artifacts were saved."
+		irc_message "Check $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE and $BUILD_URL to find out why no artifacts were saved (final status $STATUS)"
 	elif [ ! -z "$NOTIFY" ] && [ $SAVE_ARTIFACTS -eq 0 ] ; then
-		irc_message "This package just finished building: $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE"
+		irc_message "$REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE just finished building ($STATUS)"
 	fi
 	rm -r $TMPDIR
 	if ! $BAD_LOCKFILE ; then rm -f $LOCKFILE ; fi
@@ -116,7 +116,7 @@ calculate_build_duration() {
 
 update_db_and_html() {
 	# everything passed at this function is saved as a status of this package in the db
-	local STATUS="$@"
+	STATUS="$@"
 	if [ -z "$VERSION" ] ; then
 		VERSION="None"
 	fi
@@ -456,7 +456,7 @@ check_suitability
 check_for_race_conditions
 build_rebuild  # defines FTBFS redefines RBUILDLOG
 if [ $FTBFS -eq 0 ] ; then
-	call_debbindiff  # defines DBDVERSION
+	call_debbindiff  # defines DBDVERSION, update_db_and_html defines STATUS
 fi
 
 check_for_race_conditions

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