[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible arch: run diffoscope and publish the result

Holger Levsen holger at moszumanska.debian.org
Fri Oct 16 15:37:32 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 bbd79f2dd7e53302a994e8018735956b9da9409b
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Oct 16 17:36:40 2015 +0200

    reproducible arch: run diffoscope and publish the result
---
 bin/reproducible_build_arch_pkg.sh | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_build_arch_pkg.sh b/bin/reproducible_build_arch_pkg.sh
index 9760989..254bc1c 100755
--- a/bin/reproducible_build_arch_pkg.sh
+++ b/bin/reproducible_build_arch_pkg.sh
@@ -7,6 +7,9 @@ DEBUG=false
 . /srv/jenkins/bin/common-functions.sh
 common_init "$@"
 
+# common code
+. /srv/jenkins/bin/reproducible_common.sh
+
 set -e
 
 cleanup_all() {
@@ -120,13 +123,13 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
 	TMPDIR="$3"
 	[ -d $TMPDIR ] || mkdir -p $TMPDIR
 	cd $TMPDIR
-	mkdir b$MODE
+	mkdir -p b$MODE/archlinux/
 	if [ "$MODE" = "1" ] ; then
 		first_build
 	else
 		second_build
 	fi
-	mv -v /tmp/$SRCPACKAGE $TMPDIR/b$mode
+	mv -v /tmp/$SRCPACKAGE $TMPDIR/b$MODE/archlinux/
 	echo "$(date -u) - build #$MODE for $SRCPACKAGE on $HOSTNAME done."
 	exit 0
 fi
@@ -136,7 +139,11 @@ fi
 #
 SRCPACKAGE=sudo
 build_rebuild
-#call_diffoscope
+call_diffoscope archlinux $SRCPACKAGE
+if [ -f $TMPDIR/archlinux/$SRCPACKAGE.html ] ; then
+	cp $TMPDIR/archlinux/$SRCPACKAGE.html $BASE/archlinux
+	echo "$(date -u) - $REPRODUCIBLE_URL/archlinux/$SRCPACKAGE.html updated."
+fi
 
 cd
 cleanup_all

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