From 6da517d1e80a7a0b318d7c4c3f57aa663ecd9c5e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 21 Jun 2016 00:53:41 +0200 Subject: d-i iso builds: allow rsync of isos to pb10 --- bin/d-i_build.sh | 2 +- bin/jenkins_node_wrapper.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh index a0fb5078..57ecbaa8 100755 --- a/bin/d-i_build.sh +++ b/bin/d-i_build.sh @@ -71,7 +71,7 @@ preserve_artifacts() { if [ "$HOSTNAME" = "jenkins" ] ; then # FIXME this rsync should probably be in a separate job that the one on pb10 could then depend on -- otherwise race conditions seem to lurk ssh -o 'Batchmode = yes' $DI_HOST mkdir -p $ISO_DIR/ - rsync -e "ssh -o 'Batchmode = yes'" -r $DI_HOST:$ISO_DIR/ $ISO_DIR/ + rsync -e "ssh -o 'Batchmode = yes'" -r $ISO_DIR/ $DI_HOST:$ISO_DIR/ fi fi } diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh index c26d45f1..101ae4eb 100755 --- a/bin/jenkins_node_wrapper.sh +++ b/bin/jenkins_node_wrapper.sh @@ -87,8 +87,8 @@ elif [[ "$*" =~ rsync\ --server\ --sender\ .*\ .\ /srv/reproducible-results/.* ] exec rsync --server --sender "$4" . "$6" ; croak "Exec failed"; elif [[ "$*" =~ rsync\ --server\ --sender\ .*\ .\ /var/lib/jenkins/userContent/reproducible/.* ]] ; then exec rsync --server --sender "$4" . "$6" ; croak "Exec failed"; -elif [[ "$*" =~ rsync\ --server\ --sender\ .*\ .\ /srv/d-i/isos/ ]] ; then - exec rsync --server --sender "$4" . "$6" ; croak "Exec failed"; +elif [[ "$*" =~ rsync\ --server\ .*\ .\ /srv/d-i/isos/ ]] ; then + exec rsync --server --sender "$3" . "$5" ; croak "Exec failed"; elif [[ "$*" =~ mkdir\ -p\ /srv/d-i/isos/.* ]] ; then exec mkdir -p "$3" ; croak "Exec failed"; elif [[ "$*" =~ rm\ -r\ /srv/reproducible-results/tmp.* ]] ; then -- cgit v1.2.3-70-g09d2