[Qa-jenkins-scm] [jenkins.debian.net] 01/03: reproducible debian: DRY refactoring

Holger Levsen holger at layer-acht.org
Sat Jun 11 11:02:41 UTC 2016


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 1bfb1eb4a5207dbd7f308a514915fef0bfe366e7
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Jun 11 12:41:32 2016 +0200

    reproducible debian: DRY refactoring
---
 bin/reproducible_build.sh | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index d07a4ad..488cc40 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -644,7 +644,7 @@ EOF
 remote_build() {
 	local BUILDNR=$1
 	local NODE=$2
-	local PORT=$3
+	get_node_ssh_port $NODE
 	set +e
 	ssh -o "BatchMode = yes" -p $PORT $NODE /bin/true
 	RESULT=$?
@@ -701,8 +701,7 @@ check_buildinfo() {
 		echo "$(date -u) - The build environment varies according to the two .buildinfo files, probably due to mirror update. Doing the first build on $NODE1 again."
 		echo "============================================================================="
 		echo
-		get_node_ssh_port $NODE1
-		remote_build 1 $NODE1 $PORT
+		remote_build 1 $NODE1
 		grep-dctrl -s Installed-Build-Depends -n ${SRCPACKAGE} ./b1/$BUILDINFO > $TMPFILE1
 		set +e
 		diff $TMPFILE1 $TMPFILE2
@@ -719,8 +718,7 @@ check_buildinfo() {
 build_rebuild() {
 	FTBFS=1
 	mkdir b1 b2
-	get_node_ssh_port $NODE1
-	remote_build 1 $NODE1 $PORT
+	remote_build 1 $NODE1
 	if [ ! -f b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] && [ -f b1/${SRCPACKAGE}_*_${ARCH}.changes ] ; then
 			echo "Version mismatch between main node (${SRCPACKAGE}_${EVERSION}_${ARCH}.dsc expected) and first build node ($(ls b1/*dsc)) for $SUITE/$ARCH, aborting. Please upgrade the schroots..." | tee -a ${RBUILDLOG}
 			# reschedule the package for later and quit the build without saving anything
@@ -729,8 +727,7 @@ build_rebuild() {
 			exit 0
 	elif [ -f b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] ; then
 		# the first build did not FTBFS, try rebuild it.
-		get_node_ssh_port $NODE2
-		remote_build 2 $NODE2 $PORT
+		remote_build 2 $NODE2
 		if [ -f b2/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] ; then
 			# both builds were fine, i.e., they did not FTBFS.
 			FTBFS=0

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