[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] debian rebuilder prototype: fail, even through pipes

Holger Levsen gitlab at salsa.debian.org
Mon Mar 1 01:09:11 GMT 2021



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
84389356 by Holger Levsen at 2021-03-01T02:08:54+01:00
debian rebuilder prototype: fail, even through pipes

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_debian_rebuilder_prototype.sh


Changes:

=====================================
bin/reproducible_debian_rebuilder_prototype.sh
=====================================
@@ -44,6 +44,7 @@ common_init "$@"
 # common code for tests.reproducible-builds.org
 . /srv/jenkins/bin/reproducible_common.sh
 set -e
+set -o pipefail		# see eg http://petereisentraut.blogspot.com/2010/11/pipefail.html
 
 output_echo() {
 	echo "###########################################################################################"
@@ -156,6 +157,10 @@ mv $FILE ..
 DEBREBUILD=$(mktemp -t debrebuild-cmd.XXXXXXXX)
 output_echo "trying to debrebuild $PKG ($BINARY_VERSION)"
 /srv/jenkins/bin/rb-debrebuild --builder=sbuild --timestamp=metasnap --buildresults=. ../$FILE 2>&1 | tee $DEBREBUILD
+RESULT=$?
+if [ "$RESULT" != "0" ] ; then
+   output_echo "Warning: rb-debrebuild exited with $RESULT"
+fi
 
 # FIXME: drop if deemed unneeded with bullseye...
 #		if egrep -q 'cannot find .* in dumpavail' $DEBREBUILD ; then



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/84389356fb3b9ff761ea6434c19777aaa3bbcf26

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/84389356fb3b9ff761ea6434c19777aaa3bbcf26
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20210301/3472f0d1/attachment.htm>


More information about the Qa-jenkins-scm mailing list