From 263bf4c50240a9cafc12a2a0f162fbeac9c166ff Mon Sep 17 00:00:00 2001 From: Sam Hague Date: Mon, 16 Jul 2018 20:03:11 -0400 Subject: [PATCH] Move odl logs to own dir This patch will create dirs with the archives for each odl node and then copy all the relevant logs and jvmplot data for those nodes to the dirs. For example, in a 3node job the dirs odl_1, odl_2 and odl_3 will be created and their data copied there. Change-Id: I0b537be9ab825a733a2f628f79f57fae0157996f Signed-off-by: Sam Hague --- jjb/integration/integration-macros.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jjb/integration/integration-macros.yaml b/jjb/integration/integration-macros.yaml index 9f9f27263..2ab9bb4fc 100644 --- a/jjb/integration/integration-macros.yaml +++ b/jjb/integration/integration-macros.yaml @@ -558,6 +558,13 @@ #!/bin/bash cd $WORKSPACE mkdir -p ./archives + for i in `seq 1 ${NUM_ODL_SYSTEM}`; do + NODE_FOLDER="./archives/odl_${i}" + mkdir -p ${NODE_FOLDER} + mv odl${i}_karaf* ${NODE_FOLDER} || true + mv karaf_${i}_*_threads* ${NODE_FOLDER} || true + mv *_${i}.png ${NODE_FOLDER} || true + done curl --output robot-plugin.zip "$BUILD_URL/robot/report/*zip*/robot-plugin.zip" unzip -d ./archives robot-plugin.zip mv *.log *.log.gz *.csv *.png ./archives || true # Don't fail if file missing -- 2.36.6