summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-21 17:33:01 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-21 17:52:22 +0200
commitfc7c5b16e8457eaa933cfb9be03ed2f7eca2e3e8 (patch)
treef659a453fbcf30da3e707006df544b175de2255a
parent1a37e1fa6967c3b346e2fd756531ab973ba1b350 (diff)
downloadjenkins.debian.net-fc7c5b16e8457eaa933cfb9be03ed2f7eca2e3e8.tar.xz
reproducible: build: refactor: print apt-get source output also in the jenkins log
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 1e6dcc14..9a276eba 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -319,7 +319,7 @@ init() {
}
get_source_package() {
- schroot --directory $PWD -c source:jenkins-reproducible-$SUITE apt-get -- --download-only --only-source source ${SRCPACKAGE} >> ${RBUILDLOG} 2>&1
+ schroot --directory $PWD -c source:jenkins-reproducible-$SUITE apt-get -- --download-only --only-source source ${SRCPACKAGE} 2>&1 | tee -a ${RBUILDLOG}
local RESULT=$?
if [ $RESULT != 0 ] ; then
# sometimes apt-get cannot download a package for whatever reason.
@@ -328,7 +328,7 @@ get_source_package() {
ls -l ${SRCPACKAGE}* | tee -a ${RBUILDLOG}
echo "Sleeping 5m before re-trying..." | tee -a ${RBUILDLOG}
sleep 5m
- schroot --directory $PWD -c source:jenkins-reproducible-$SUITE apt-get -- --download-only --only-source source ${SRCPACKAGE} >> ${RBUILDLOG} 2>&1
+ schroot --directory $PWD -c source:jenkins-reproducible-$SUITE apt-get -- --download-only --only-source source ${SRCPACKAGE} 2>&1 | tee -a ${RBUILDLOG}
local RESULT=$?
fi
if [ $RESULT != 0 ] ; then handle_404 ; fi