aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap-DMM.sh
diff options
context:
space:
mode:
authorsharath <sharathkumarboyanapally@gmail.com>2018-10-26 11:51:45 +0530
committerPeter Mikus <pmikus@cisco.com>2018-12-18 09:34:32 +0000
commitf5a1d81c2f3c532543b6cd6a457942dbf610f5f3 (patch)
treec3e4368bd0ea72f3908b2bae5e02a0487e74beb3 /bootstrap-DMM.sh
parent4f9509d2dae42c99f5a5ece8b730bc322d31c948 (diff)
Adding DMM build artifacts
Change-Id: Ia5153d8e716d506c85ec8b723331438efd66ab6a Signed-off-by: sharath <sharathkumarboyanapally@gmail.com>
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