From 11b71c2c8a1070f3df3cde6158bd17ea01471259 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 29 Sep 2014 16:07:14 +0200 Subject: reproducible: preserve pbuilder logs for packages ftbfs and link those logs from the stats page --- bin/reproducible_build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 24128f48..35213643 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -18,7 +18,7 @@ fi # create dirs for results mkdir -p results/_success -mkdir -p /var/lib/jenkins/userContent/diffp/ +mkdir -p /var/lib/jenkins/userContent/diffp/ /var/lib/jenkins/userContent/pbuilder/ # create sqlite db PACKAGES_DB=/var/lib/jenkins/reproducible.db @@ -108,12 +108,13 @@ for SRCPACKAGE in $PACKAGES ; do SKIPPED="${SRCPACKAGE} ${SKIPPED}" continue fi - sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc + sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc | tee ${SRCPACKAGE}_${VERSION}.pbuilder.log RESULT=$? if [ $RESULT = 0 ] ; then mkdir b1 b2 dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes b1 sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes + rm ${SRCPACKAGE}_${VERSION}.pbuilder.log /var/lib/jenkins/userContent/pbuilder/${SRCPACKAGE}_*.pbuilder.log sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes b2 sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes @@ -144,6 +145,7 @@ for SRCPACKAGE in $PACKAGES ; do rm b1 b2 -rf else sqlite3 -init $INIT $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"FTBFS\", \"$DATE\", \"\")" + mv ${SRCPACKAGE}_${VERSION}.pbuilder.log /var/lib/jenkins/userContent/pbuilder/ fi dcmd rm ${SRCPACKAGE}_*.dsc -- cgit v1.2.3-70-g09d2