summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-07-30 22:23:49 +0200
committerHolger Levsen <holger@layer-acht.org>2016-08-02 16:24:24 +0200
commitdde8784fddd0b3e9c12be875e22012554195215e (patch)
treed922353081818ef7e0ceda270d5d3eb0a1c3b145 /bin
parent193c178dd97b19c252f6d9e2940a474fff3bec7a (diff)
downloadjenkins.debian.net-dde8784fddd0b3e9c12be875e22012554195215e.tar.xz
reproducible/openwrt|lede: replace remote node argument with global variables
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_lede.sh2
-rwxr-xr-xbin/reproducible_openwrt.sh2
-rw-r--r--bin/reproducible_openwrt_common.sh26
3 files changed, 16 insertions, 14 deletions
diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh
index 3efa5a70..b184f550 100755
--- a/bin/reproducible_lede.sh
+++ b/bin/reproducible_lede.sh
@@ -44,7 +44,7 @@ cd $TMPBUILDDIR
create_results_dirs lede
-build_two_times lede ar71xx_generic_ARCHERC7 "CONFIG_TARGET_ar71xx_generic=y\nCONFIG_TARGET_ar71xx_generic_ARCHERC7=y\n" profitbricks-build3-amd64 profitbricks-build4-amd64
+build_two_times lede ar71xx_generic_ARCHERC7 "CONFIG_TARGET_ar71xx_generic=y\nCONFIG_TARGET_ar71xx_generic_ARCHERC7=y\n"
# for now we only build one architecture until it's at most reproducible
#build_two_times x86_64 "CONFIG_TARGET_x86=y\nCONFIG_TARGET_x86_64=y\n"
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 1a3e8669..0d1c740a 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -44,7 +44,7 @@ cd $TMPBUILDDIR
create_results_dirs openwrt
-build_two_times openwrt ar71xx_generic_ARCHERC7 "CONFIG_TARGET_ar71xx_generic=y\nCONFIG_TARGET_ar71xx_generic_ARCHERC7=y\n" profitbricks-build3-amd64 profitbricks-build4-amd64
+build_two_times openwrt ar71xx_generic_ARCHERC7 "CONFIG_TARGET_ar71xx_generic=y\nCONFIG_TARGET_ar71xx_generic_ARCHERC7=y\n"
# for now we only build one architecture until it's at most reproducible
diff --git a/bin/reproducible_openwrt_common.sh b/bin/reproducible_openwrt_common.sh
index 0040359f..f385eabf 100644
--- a/bin/reproducible_openwrt_common.sh
+++ b/bin/reproducible_openwrt_common.sh
@@ -5,6 +5,10 @@
# 2016 Alexander Couzens <lynxis@fe80.eu>
# released under the GPLv=2
+# configuration
+GENERIC_NODE1=profitbricks-build3-amd64.debian.net
+GENERIC_NODE2=profitbricks-build4-amd64.debian.net
+
# only called direct on a remote build node
openwrt_cleanup_tmpdirs() {
export TMPDIR=$1
@@ -250,28 +254,26 @@ build_two_times() {
TYPE=$1
TARGET=$2
CONFIG=$3
- HOST_B1=$4
- HOST_B2=$5
- ## HOST_B1
+ ## GENERIC_NODE1
RUN=b1
- TMPDIR_B1=$(ssh $HOST_B1 mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-XXXXXXXX)
+ TMPDIR_B1=$(ssh $GENERIC_NODE1 mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-XXXXXXXX)
# TODO check tmpdir exist
- ssh $HOST_B1 $0 node openwrt_build $TYPE $RUN $TARGET $CONFIG $TMPDIR_B1
+ ssh $GENERIC_NODE1 $0 node openwrt_build $TYPE $RUN $TARGET $CONFIG $TMPDIR_B1
# rsync back
# copy logs and images
- rsync -a $HOST_B1:$TMPDIR_B1/$RUN/ $TMPDIR/$RUN/
+ rsync -a $GENERIC_NODE1:$TMPDIR_B1/$RUN/ $TMPDIR/$RUN/
- ssh $HOST_B1 $0 node openwrt_get_banner $TMPDIR_B1 $TYPE > $BANNER_HTML
- ssh $HOST_B1 $0 node openwrt_cleanup_tmpdirs $TMPDIR_B1
+ ssh $GENERIC_NODE1 $0 node openwrt_get_banner $TMPDIR_B1 $TYPE > $BANNER_HTML
+ ssh $GENERIC_NODE1 $0 node openwrt_cleanup_tmpdirs $TMPDIR_B1
- ## HOST_B2
+ ## GENERIC_NODE2
RUN=b2
TMPDIR_B2=$(ssh $HOST_A mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-XXXXXXXX)
- ssh $HOST_B2 $0 node openwrt_build $TYPE $RUN $TARGET $CONFIG $TMPDIR_B2
+ ssh $GENERIC_NODE2 $0 node openwrt_build $TYPE $RUN $TARGET $CONFIG $TMPDIR_B2
- rsync -a $HOST_B2:$TMPDIR_B2/$RUN/ $TMPDIR/$RUN/
- ssh $HOST_B2 $0 node openwrt_cleanup_tmpdirs $TMPDIR_B2
+ rsync -a $GENERIC_NODE2:$TMPDIR_B2/$RUN/ $TMPDIR/$RUN/
+ ssh $GENERIC_NODE2 $0 node openwrt_cleanup_tmpdirs $TMPDIR_B2
}