From 72a8a5038d4228b0f923b3dc8b82314e44111a52 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 5 Nov 2017 21:39:57 +0100 Subject: reproducible_lede: correct given path for node_cleanup_tmpdirs & node_save_logs When moving LEDE build directory to /srv/workspace/chroots those has been mistyped to RESULTSDIR instead of TMPBUILDDIR. Signed-off-by: Mattia Rizzolo --- bin/reproducible_lede_common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/reproducible_lede_common.sh b/bin/reproducible_lede_common.sh index bb9bf773..55ef15e3 100644 --- a/bin/reproducible_lede_common.sh +++ b/bin/reproducible_lede_common.sh @@ -44,16 +44,16 @@ master_cleanup_tmpdirs() { # in a success build the logs are saved on a different function if [ "$1" != "success" ] ; then # job failed - ssh $GENERIC_NODE1 reproducible_$TYPE node node_save_logs $RESULTSDIR || true - ssh $GENERIC_NODE2 reproducible_$TYPE node node_save_logs $RESULTSDIR || true + ssh $GENERIC_NODE1 reproducible_$TYPE node node_save_logs $TMPBUILDDIR || true + ssh $GENERIC_NODE2 reproducible_$TYPE node node_save_logs $TMPBUILDDIR || true # save failure logs mkdir -p $WORKSPACE/results/ rsync -av $GENERIC_NODE1:$RESULTSDIR/build_logs.tar.xz $WORKSPACE/results/build_logs_b1.tar.xz || true rsync -av $GENERIC_NODE2:$RESULTSDIR/build_logs.tar.xz $WORKSPACE/results/build_logs_b2.tar.xz || true fi - ssh $GENERIC_NODE1 reproducible_$TYPE node node_cleanup_tmpdirs $RESULTSDIR || true - ssh $GENERIC_NODE2 reproducible_$TYPE node node_cleanup_tmpdirs $RESULTSDIR || true + ssh $GENERIC_NODE1 reproducible_$TYPE node node_cleanup_tmpdirs $TMPBUILDDIR || true + ssh $GENERIC_NODE2 reproducible_$TYPE node node_cleanup_tmpdirs $TMPBUILDDIR || true cd # (very simple) check we are deleting the right stuff -- cgit v1.2.3-54-g00ecf