[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reprodducible openwrt: save banner before cleanup

Holger Levsen holger at moszumanska.debian.org
Sat Oct 24 00:11:53 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 47adac08044c9fcfe080c9a705644f65b67eb53e
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Oct 23 19:11:32 2015 -0500

    reprodducible openwrt: save banner before cleanup
---
 bin/reproducible_openwrt.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index d344ae2..c42d152 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -23,6 +23,7 @@ cleanup_tmpdirs() {
 	fi
 	rm -rf $TMPDIR
 	rm -rf $TMPBUILDDIR
+	rm -f $BANNER_HTML
 }
 
 create_results_dirs() {
@@ -113,6 +114,9 @@ build_two_times() {
 	MAKE=make
 	openwrt_build "first" "$TARGET"
 
+	# get banner
+	cat $(find build_dir/ -name banner | grep etc/banner|head -1) > $BANNER_HTML
+
 	# save results in b1
 	save_openwrt_results b1
 
@@ -150,6 +154,7 @@ build_two_times() {
 #
 TMPBUILDDIR=$(mktemp --tmpdir=/srv/workspace/chroots/ -d -t openwrt-XXXXXXXX)  # used to build on tmpfs
 TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d)  # accessable in schroots, used to compare results
+BANNER_HTML=$(mktemp --tmpdir=$TMPDIR)
 DATE=$(date -u +'%Y-%m-%d')
 START=$(date +'%s')
 trap cleanup_tmpdirs INT TERM EXIT
@@ -206,9 +211,6 @@ for i in gcc binutils bzip2 flex python perl make findutils grep diffutils unzip
 	echo " </td></tr>" >> $TOOLCHAIN_HTML
 done
 echo "</table>" >> $TOOLCHAIN_HTML
-# get banner
-BANNER_HTML=$(mktemp --tmpdir=$TMPDIR)
-cat $(find build_dir/ -name banner | grep etc/banner|head -1) >> $BANNER_HTML
 
 # clean up builddir to save space on tmpfs
 rm -rf $TMPBUILDDIR/openwrt

-- 
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