[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: build: refactor: print apt-get source output also in the jenkins log
Holger Levsen
holger at moszumanska.debian.org
Tue Apr 21 15:52:31 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 fc7c5b16e8457eaa933cfb9be03ed2f7eca2e3e8
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Tue Apr 21 17:33:01 2015 +0200
reproducible: build: refactor: print apt-get source output also in the jenkins log
---
bin/reproducible_build.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 1e6dcc1..9a276eb 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
--
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