From 3c0a4c8ca8858a4473a90508f3d1bfa871e1f410 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Thu, 13 Oct 2016 02:15:07 +0200 Subject: reproducible_openwrt|lede: copy log files to $WORKSPACE/results/ Signed-off-by: Holger Levsen --- bin/reproducible_openwrt_common.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/reproducible_openwrt_common.sh') diff --git a/bin/reproducible_openwrt_common.sh b/bin/reproducible_openwrt_common.sh index bb107a18..ffaeb555 100644 --- a/bin/reproducible_openwrt_common.sh +++ b/bin/reproducible_openwrt_common.sh @@ -307,6 +307,9 @@ build_two_times() { ssh $GENERIC_NODE2 reproducible_$TYPE node node_create_tmpdirs $TMPDIR mkdir -p $TMPDIR/download/ + # create results directory saved by jenkins as artifacts + mkdir -p $WORKSPACE/results/ + # download and prepare openwrt on node b1 ssh $GENERIC_NODE1 reproducible_$TYPE node openwrt_download $TYPE $TARGET $CONFIG $TMPDIR @@ -327,6 +330,7 @@ build_two_times() { # rsync back logs and images rsync -av $GENERIC_NODE1:$TMPDIR/$RUN/ $TMPDIR/$RUN/ + rsync -av $GENERIC_NODE1:$TMPDIR/build_logs.tar.xz $WORKSPACE/results/build_logs_b1.tar.xz ssh $GENERIC_NODE1 reproducible_$TYPE node node_cleanup_tmpdirs $TMPDIR ## second run @@ -335,5 +339,6 @@ build_two_times() { # rsync back logs and images rsync -av $GENERIC_NODE2:$TMPDIR/$RUN/ $TMPDIR/$RUN/ + rsync -av $GENERIC_NODE2:$TMPDIR/build_logs.tar.xz $WORKSPACE/results/build_logs_b2.tar.xz ssh $GENERIC_NODE2 reproducible_$TYPE node node_cleanup_tmpdirs $TMPDIR } -- cgit v1.2.3-54-g00ecf