summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-28 15:54:29 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-28 15:54:29 +0200
commite470782342229e2a3cc84abe96c447816bb963f5 (patch)
treed5a385b03376411e8286ff13dcc9063a7207b370
parentff990ff3b31094cb9fecd1947d6ce37a8339718a (diff)
downloadjenkins.debian.net-e470782342229e2a3cc84abe96c447816bb963f5.tar.xz
reproducible: only preserve bad logfiles
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index a56a6178..11aa09be 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -110,7 +110,6 @@ for SRCPACKAGE in $PACKAGES ; do
LOGFILE=$(ls ${SRCPACKAGE}_*.dsc)
LOGFILE=$(echo ${LOGFILE%.dsc}.diffp.log)
./misc.git/diffp b1/${SRCPACKAGE}_*.changes b2/${SRCPACKAGE}_*.changes | tee ./results/${LOGFILE}
- cp ./results/${LOGFILE} /var/lib/jenkins/userContent/diffp/
if ! $(grep -qv '^\*\*\*\*\*' ./results/${LOGFILE}) ; then
mv ./results/${LOGFILE} ./results/_success/
figlet ${SRCPACKAGE}
@@ -121,6 +120,7 @@ for SRCPACKAGE in $PACKAGES ; do
GOOD="${SRCPACKAGE} ${GOOD}"
touch results/___.dummy.log # not having any bad logs is not a reason for failure
else
+ cp ./results/${LOGFILE} /var/lib/jenkins/userContent/diffp/
echo "Warning: ${SRCPACKAGE} failed to build reproducibly."
sqlite3 -init $INIT $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"unreproducible\", \"$DATE\", \"\")"
let "COUNT_BAD=COUNT_BAD+1"