[Qa-jenkins-scm] [jenkins.debian.net] 06/11: reproducible/openwrt|lede: build_two_times(): improve formatting and comments
Holger Levsen
holger at layer-acht.org
Tue Aug 2 14:25:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit eea8870197ce9f52ba11dece665f64d13b32b7b8
Author: Alexander Couzens <lynxis at fe80.eu>
Date: Sat Jul 30 22:28:01 2016 +0200
reproducible/openwrt|lede: build_two_times(): improve formatting and comments
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_openwrt_common.sh | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/bin/reproducible_openwrt_common.sh b/bin/reproducible_openwrt_common.sh
index f385eab..53682af 100644
--- a/bin/reproducible_openwrt_common.sh
+++ b/bin/reproducible_openwrt_common.sh
@@ -255,25 +255,23 @@ build_two_times() {
TARGET=$2
CONFIG=$3
- ## GENERIC_NODE1
+ ## first run
RUN=b1
TMPDIR_B1=$(ssh $GENERIC_NODE1 mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-XXXXXXXX)
- # TODO check tmpdir exist
-
ssh $GENERIC_NODE1 $0 node openwrt_build $TYPE $RUN $TARGET $CONFIG $TMPDIR_B1
- # rsync back
- # copy logs and images
- rsync -a $GENERIC_NODE1:$TMPDIR_B1/$RUN/ $TMPDIR/$RUN/
-
ssh $GENERIC_NODE1 $0 node openwrt_get_banner $TMPDIR_B1 $TYPE > $BANNER_HTML
+
+ # rsync back logs and images
+ rsync -a $GENERIC_NODE1:$TMPDIR_B1/$RUN/ $TMPDIR/$RUN/
ssh $GENERIC_NODE1 $0 node openwrt_cleanup_tmpdirs $TMPDIR_B1
- ## GENERIC_NODE2
+ ## second run
RUN=b2
TMPDIR_B2=$(ssh $HOST_A mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-XXXXXXXX)
ssh $GENERIC_NODE2 $0 node openwrt_build $TYPE $RUN $TARGET $CONFIG $TMPDIR_B2
+ # rsync back logs and images
rsync -a $GENERIC_NODE2:$TMPDIR_B2/$RUN/ $TMPDIR/$RUN/
ssh $GENERIC_NODE2 $0 node openwrt_cleanup_tmpdirs $TMPDIR_B2
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list