[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: remove notification about no artifacts on ftbfs

Holger Levsen holger at moszumanska.debian.org
Sat Oct 3 11:19:08 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 8da840c8198b5380b01bd3686fd04c2dfa2a5dff
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Oct 3 13:18:32 2015 +0200

    reproducible: remove notification about no artifacts on ftbfs
---
 bin/reproducible_build.sh | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 722e9d3..35fb0e2 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -65,7 +65,7 @@ save_artifacts() {
 		echo | tee -a ${RBUILDLOG}
 		# irc message
 		if [ ! -z "$NOTIFY" ] ; then
-			local MESSAGE="Artifacts for ${SRCPACKAGE} (${SUITE}/${ARCH}) published: $URL"
+			local MESSAGE="Artifacts for ${SRCPACKAGE} ($STATUS in ${SUITE}/${ARCH}) published: $URL"
 			if [ "$NOTIFY" = "diffoscope" ] ; then
 				MESSAGE="$MESSAGE (error when running $DIFFOSCOPE)"
 			fi
@@ -74,10 +74,8 @@ save_artifacts() {
 }
 
 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/$SUITE/$ARCH/$SRCPACKAGE and $BUILD_URL to find out why no artifacts were saved (final status $STATUS)"
+	if [ $SAVE_ARTIFACTS -eq 1 ] ; then
+		save_artifacts
 	elif [ ! -z "$NOTIFY" ] && [ $SAVE_ARTIFACTS -eq 0 ] ; then
 		irc_message "$REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE done: $STATUS"
 	fi

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