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 <shague@redhat.com>
#!/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