[Qa-jenkins-scm] [jenkins.debian.net] 03/04: reproducible: build: write both build logs to rbuild

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 e0af4fac06240e53e56144a9c1a47072e89a401f
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Mon Apr 27 16:55:46 2015 +0200

    reproducible: build: write both build logs to rbuild
---
 bin/reproducible_build.sh | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 701f531..43d6a27 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -364,7 +364,6 @@ check_suitability() {
 
 build_rebuild() {
 	FTBFS=1
-	local TMPLOG=$(mktemp --tmpdir=$TMPDIR)
 	local TMPCFG=$(mktemp -t pbuilderrc_XXXX --tmpdir=$TMPDIR)
 	local NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l)
 	mkdir b1 b2
@@ -380,7 +379,7 @@ build_rebuild() {
 		--buildresult b1 \
 		--distribution ${SUITE} \
 		${SRCPACKAGE}_*.dsc \
-	) 2>&1 | tee ${TMPLOG}
+	) 2>&1 | tee -a $RBUILDLOG
 	set +x
 	if [ -f b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] ; then
 		# the first build did not FTBFS, try rebuild it.
@@ -414,14 +413,12 @@ build_rebuild() {
 		else
 			echo "The second build failed, even though the first build was successful." | tee -a ${RBUILDLOG}
 		fi
-	else
-		cat ${TMPLOG} >> ${RBUILDLOG}
 	fi
 	cleanup_userContent
 	chmod 644 $RBUILDLOG
 	mv $RBUILDLOG /var/lib/jenkins/userContent/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_${EVERSION}.rbuild.log
 	RBUILDLOG=/var/lib/jenkins/userContent/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_${EVERSION}.rbuild.log
-	rm ${TMPLOG} $TMPCFG
+	rm $TMPCFG
 	if [ $FTBFS -eq 1 ] ; then handle_ftbfs ; 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