aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap-DMM.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap-DMM.sh')
-rwxr-xr-xbootstrap-DMM.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/bootstrap-DMM.sh b/bootstrap-DMM.sh
index 4828868d84..7117205f10 100755
--- a/bootstrap-DMM.sh
+++ b/bootstrap-DMM.sh
@@ -17,6 +17,12 @@ set -x
cat /etc/hostname
cat /etc/hosts
+JOB_ARCHIVE_ARTIFACTS=(log.html output.xml report.html *.log)
+LOG_ARCHIVE_ARTIFACTS=(log.html output.xml report.html *.log)
+JOB_ARCHIVE_DIR="archive"
+LOG_ARCHIVE_DIR="$WORKSPACE/archives"
+mkdir -p ${JOB_ARCHIVE_DIR}
+mkdir -p ${LOG_ARCHIVE_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PYTHONPATH=${SCRIPT_DIR}
@@ -427,6 +433,15 @@ rebot --noncritical EXPECTED_FAILING \
# Remove unnecessary log files
rm -f ${partial_logs}
+# Archive JOB artifacts in jenkins
+for i in ${JOB_ARCHIVE_ARTIFACTS[@]}; do
+ cp $( readlink -f ${i} | tr '\n' ' ' ) ${JOB_ARCHIVE_DIR}/
+done
+# Archive JOB artifacts to logs.fd.io
+for i in ${LOG_ARCHIVE_ARTIFACTS[@]}; do
+ cp $( readlink -f ${i} | tr '\n' ' ' ) ${LOG_ARCHIVE_DIR}/
+done
+
echo Post-processing finished.
if [ ${RC} -eq 0 ]; then