diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2016-07-31 01:12:39 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-08-02 16:24:25 +0200 |
commit | ee6b19b44fbe82f4b5663c4fe4faf00ceb68cc58 (patch) | |
tree | b77aea5ff6c85566fdfea9e8e600d2509c019844 | |
parent | eea8870197ce9f52ba11dece665f64d13b32b7b8 (diff) | |
download | jenkins.debian.net-ee6b19b44fbe82f4b5663c4fe4faf00ceb68cc58.tar.xz |
reproducible/openwrt|lede: add openwrt_mktempdir for remote note execution
mktemp is not possible to so
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rw-r--r-- | bin/reproducible_openwrt_common.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/reproducible_openwrt_common.sh b/bin/reproducible_openwrt_common.sh index 53682aff..7c47d539 100644 --- a/bin/reproducible_openwrt_common.sh +++ b/bin/reproducible_openwrt_common.sh @@ -9,6 +9,10 @@ GENERIC_NODE1=profitbricks-build3-amd64.debian.net GENERIC_NODE2=profitbricks-build4-amd64.debian.net +openwrt_mktempdir() { + mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-XXXXXXXX +} + # only called direct on a remote build node openwrt_cleanup_tmpdirs() { export TMPDIR=$1 @@ -257,7 +261,7 @@ build_two_times() { ## first run RUN=b1 - TMPDIR_B1=$(ssh $GENERIC_NODE1 mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-XXXXXXXX) + TMPDIR_B1=$(ssh $GENERIC_NODE1 reproducible_$TYPE node openwrt_mktempdir) ssh $GENERIC_NODE1 $0 node openwrt_build $TYPE $RUN $TARGET $CONFIG $TMPDIR_B1 ssh $GENERIC_NODE1 $0 node openwrt_get_banner $TMPDIR_B1 $TYPE > $BANNER_HTML @@ -268,7 +272,7 @@ build_two_times() { ## second run RUN=b2 - TMPDIR_B2=$(ssh $HOST_A mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-XXXXXXXX) + TMPDIR_B2=$(ssh $GENERIC_NODE2 reproducible_$TYPE node openwrt_mktempdir) ssh $GENERIC_NODE2 $0 node openwrt_build $TYPE $RUN $TARGET $CONFIG $TMPDIR_B2 # rsync back logs and images |