[Qa-jenkins-scm] [jenkins.debian.net] 02/03: reproducible: handle rsync problems with remote builds
Holger Levsen
holger at moszumanska.debian.org
Sun Sep 6 12:55:44 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 605489040a5c4df7b119ba4dea80728c46136755
Author: Holger Levsen <holger at layer-acht.org>
Date: Sun Sep 6 14:40:50 2015 +0200
reproducible: handle rsync problems with remote builds
---
TODO | 6 ------
bin/reproducible_build.sh | 17 ++++++++++++++++-
2 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/TODO b/TODO
index 280db49..c0715fd 100644
--- a/TODO
+++ b/TODO
@@ -239,12 +239,6 @@ properties:
* reproducible_build.sh changes needed:
** diffoscope needs to be run on the target arch...
*** can't this be run via qemu on the host?
-* deal with rsync problems as in https://jenkins.debian.net/job/reproducible_builder_armhf_4/61/:
-----
-jenkins_node_wrapper.sh[14148] remote_host called with rsync --server --sender -re.iLsfx . /srv/reproducible-results/tmp.QhHoGHUUnP/b1
-Write failed: Broken pipe
-rsync: connection unexpectedly closed (55445 bytes received so far) [receiver]
-----
* missing job definitions:
** reproducible_builder_amd64_1 runs "reproducible_build.sh profitbricks-build1-amd64 profitbricks-build2-amd64"
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 273291d..479ba1a 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -520,6 +520,11 @@ check_buildinfo() {
/srv/jenkins/bin/abort.sh
fi
rsync -e "ssh -p $PORT1" -r $NODE1:$TMPDIR/b1 $TMPDIR/
+ RESULT=$?
+ if [ $RESULT -ne 0 ] ; then
+ echo "Unhandled error when rsyncing remote build job results, please investigate."
+ /srv/jenkins/bin/abort.sh
+ fi
ls -R $TMPDIR
ssh -p $PORT1 $NODE1 "rm -r $TMPDIR"
fi
@@ -551,7 +556,12 @@ build_rebuild() {
/srv/jenkins/bin/abort.sh
fi
rsync -e "ssh -p $PORT1" -r $NODE1:$TMPDIR/b1 $TMPDIR/
- ls -R $TMPDIR
+ RESULT=$?
+ if [ $RESULT -ne 0 ] ; then
+ echo "Unhandled error when rsyncing remote build job results, please investigate."
+ /srv/jenkins/bin/abort.sh
+ fi
+ ls -R $TMPDIR
ssh -p $PORT1 $NODE1 "rm -r $TMPDIR"
fi
if [ ! -f b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] && [ -f b1/${SRCPACKAGE}_*_${ARCH}.changes ] ; then
@@ -580,6 +590,11 @@ build_rebuild() {
/srv/jenkins/bin/abort.sh
fi
rsync -e "ssh -p $PORT2" -r $NODE2:$TMPDIR/b2 $TMPDIR/
+ RESULT=$?
+ if [ $RESULT -ne 0 ] ; then
+ echo "Unhandled error when rsyncing remote build job results, please investigate."
+ /srv/jenkins/bin/abort.sh
+ fi
ls -R $TMPDIR
ssh -p $PORT2 $NODE2 "rm -r $TMPDIR"
fi
--
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