summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-30 22:55:57 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-30 22:55:57 +0200
commitfe15acc2b74e097ca7c4d72ae912504910546a73 (patch)
tree5dad6f9b70c1492080f21160933e0ac419d65bba /bin/reproducible_build.sh
parentd5bb83e244d6f5f7a4aead874abd6c31908eceb9 (diff)
downloadjenkins.debian.net-fe15acc2b74e097ca7c4d72ae912504910546a73.tar.xz
reproducible: handle remote $TMPDIR properly
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh5
1 files changed, 3 insertions, 2 deletions
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