Move odl logs to own dir 10/74110/2
authorSam Hague <shague@redhat.com>
Tue, 17 Jul 2018 00:03:11 +0000 (20:03 -0400)
committerSam Hague <shague@redhat.com>
Tue, 17 Jul 2018 10:47:39 +0000 (06:47 -0400)
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>
jjb/integration/integration-macros.yaml

index 9f9f272638e08084852bfa0695a77a8fb984445b..2ab9bb4fc9aa28687f0ebfa9ebfff99cd2c3e6e5 100644 (file)
                     #!/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