diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-27 16:55:46 +0200 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-27 17:19:57 +0200 |
commit | e0af4fac06240e53e56144a9c1a47072e89a401f (patch) | |
tree | d96351d6733b1389367e8fe2ce83d8511e473e21 | |
parent | 7ab786dd2a897f97a7a42389a5efe8f0f93f57aa (diff) | |
download | jenkins.debian.net-e0af4fac06240e53e56144a9c1a47072e89a401f.tar.xz |
reproducible: build: write both build logs to rbuild
-rwxr-xr-x | bin/reproducible_build.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 701f5319..43d6a271 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 } |