From fe15acc2b74e097ca7c4d72ae912504910546a73 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 30 Aug 2015 22:55:57 +0200 Subject: reproducible: handle remote $TMPDIR properly --- bin/reproducible_build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 3f01912f..21874d26 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -523,7 +523,7 @@ build_rebuild() { if [ "$MODE" = "legacy" ] ; then first_build else - ssh -p $PORT1 $NODE1 /srv/jenkins/bin/reproducible_build.sh 1 ${SRCPACKAGE} ${SUITE} + ssh -p $PORT1 $NODE1 /srv/jenkins/bin/reproducible_build.sh 1 ${SRCPACKAGE} ${SUITE} ${TMPDIR} rsync -e "ssh -p $PORT1" -r $NODE1:$PWD/b1 . ssh -p $PORT1 $NODE1 "rm -r $PWD/b1" fi @@ -536,7 +536,7 @@ build_rebuild() { if [ "$MODE" = "legacy" ] ; then second_build else - ssh -p $PORT2 $NODE2 /srv/jenkins/bin/reproducible_build.sh 2 + ssh -p $PORT2 $NODE2 /srv/jenkins/bin/reproducible_build.sh 2 ${SRCPACKAGE} ${SUITE} ${TMPDIR} rsync -e "ssh -p $PORT2" -r $NODE2:$PWD/b2 . ssh -p $PORT2 $NODE2 "rm -r $PWD/b2" fi @@ -574,6 +574,7 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then SRCPACKAGE="$2" SUITE="$3" SAVE_ARTIFACTS=0 + TMPDIR="$4" ; mkdir $TMPDIR ; cd $$TMPDIR get_source_package mkdir b$MODE if [ "$MODE" = "1" ] ; then -- cgit v1.2.3-70-g09d2