3 echo "Archiving csit artifacts"
4 cd "$WORKSPACE" || exit
6 for i in $(seq 1 "${NUM_ODL_SYSTEM}"); do
7 NODE_FOLDER="./archives/odl_${i}"
8 mkdir -p "${NODE_FOLDER}"
9 mv odl"${i}"_* "${NODE_FOLDER}" || true
10 mv karaf_"${i}"_*_threads* "${NODE_FOLDER}" || true
11 mv -- *_"${i}".png "${NODE_FOLDER}" || true
12 mv /tmp/odl"${i}"_* "${NODE_FOLDER}" || true
13 mv gclogs-"${i}" "${NODE_FOLDER}" || true
15 curl --output robot-plugin.zip "$BUILD_URL/robot/report/*zip*/robot-plugin.zip"
16 unzip -d ./archives robot-plugin.zip
17 mv -- *.log *.log.gz *.csv *.png ./archives || true # Don't fail if file missing
18 # TODO: Can the following line ever fail?
19 find . -type f -name '*.hprof' -print0 \
20 | tar -cvf - --null -T - | xz --threads=0 > ./archives/hprof.tar.xz
21 # TODO: Tweak the compression level if better ratio (or speed) is needed.