[Qa-jenkins-scm] [jenkins.debian.net] 09/12: reproducible: build: refactor: call_debbindiff(): print out debbindiff output also to the stdout, aka jenkins log

Holger Levsen holger at moszumanska.debian.org
Sat Apr 18 15:44:58 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 e894db84ed99e13bb473076401ff9a1a7cd88f27
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Mon Apr 6 15:37:58 2015 +0200

    reproducible: build: refactor: call_debbindiff(): print out debbindiff output also to the stdout, aka jenkins log
---
 bin/reproducible_build.sh | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index b43290a..7472c55 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -179,16 +179,25 @@ dbd_timeout() {
 }
 
 call_debbindiff() {
-	init_debbindiff
+	init_debbindiff  # check and set up locks for chroot
+	local TMPLOG=(mktemp --tmpdir=$PWD)
 	echo | tee -a ${RBUILDLOG}
 	TIMEOUT="30m"  # don't forget to also change the "seq 0 200" loop 17 lines above
 	DBDVERSION="$(schroot --directory /tmp -c source:jenkins-reproducible-unstable-debbindiff debbindiff -- --version 2>&1)"
 	echo "$(date) - $DBDVERSION will be used to compare the two builds now." | tee -a ${RBUILDLOG}
 	set -x
-	( timeout $TIMEOUT schroot --directory $TMPDIR -c source:jenkins-reproducible-unstable-debbindiff debbindiff -- --html ./${DBDREPORT} ./b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ./b2/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes 2>&1 ) 2>&1 >> ${RBUILDLOG}
+	( timeout $TIMEOUT schroot \
+		--directory $TMPDIR \
+		-c source:jenkins-reproducible-unstable-debbindiff \
+		debbindiff -- \
+			--html ./${DBDREPORT} \
+			./b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes \
+			./b2/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes 2>&1 \
+	) 2>&1 >> $TMPLOG
 	RESULT=$?
 	set +x
-	rm -f $DBDCHROOT_READLOCK
+	cat $TMPLOG | tee -a $RBUILDLOG
+	rm -f $DBDCHROOT_READLOCK $TMPLOG
 	echo | tee -a ${RBUILDLOG}
 	case $RESULT in
 		124)

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