aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap-hc2vpp-verify.sh
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-05-15 10:31:19 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-05-15 10:31:31 +0200
commit0ac66d491ae486ad5d553eecb5aa400ca1fbd9db (patch)
treec810c213adcf6e9a11c55049c878c9ed1e17eeb2 /bootstrap-hc2vpp-verify.sh
parent12a708852932c96c66a453adc24339b746971f7a (diff)
HC tests: archive JOB artifacts to logs.fd.io
Change-Id: I305c9fd0b5653cc749716a8e700fb4c75a9252a6 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'bootstrap-hc2vpp-verify.sh')
-rwxr-xr-xbootstrap-hc2vpp-verify.sh19
1 files changed, 13 insertions, 6 deletions
diff --git a/bootstrap-hc2vpp-verify.sh b/bootstrap-hc2vpp-verify.sh
index 603a969915..6c136759be 100755
--- a/bootstrap-hc2vpp-verify.sh
+++ b/bootstrap-hc2vpp-verify.sh
@@ -27,8 +27,12 @@ VIRL_PKEY=priv_key
VIRL_SERVER_STATUS_FILE="status"
VIRL_SERVER_EXPECTED_STATUS="PRODUCTION"
-ARCHIVE_ARTIFACTS=(log.html output.xml report.html honeycomb.log)
-
+JOB_ARCHIVE_ARTIFACTS=(log.html output.xml report.html honeycomb.log)
+LOG_ARCHIVE_ARTIFACTS=(log.html output.xml report.html honeycomb.log)
+JOB_ARCHIVE_DIR="archive"
+LOG_ARCHIVE_DIR="$WORKSPACE/archives"
+mkdir -p ${JOB_ARCHIVE_DIR}
+mkdir -p ${LOG_ARCHIVE_DIR}
OS=$1
if [ -f "/etc/redhat-release" ]; then
@@ -238,10 +242,13 @@ RETURN_STATUS=$?
scp ${SSH_OPTIONS} \
${VIRL_USERNAME}@${VIRL_SERVER}:/scratch/${VIRL_SID}/honeycomb.log . || true
-# Archive artifacts
-mkdir archive
-for i in ${ARCHIVE_ARTIFACTS[@]}; do
- cp $( readlink -f ${i} | tr '\n' ' ' ) archive/
+# 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
exit ${RETURN_STATUS}