diff options
author | Peter Mikus <pmikus@cisco.com> | 2018-04-11 14:41:44 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2018-04-16 05:10:55 +0000 |
commit | 327cb5f515b06108992108ecc8e8b60b9529713f (patch) | |
tree | 62567a13e5a53ac406ede3ff1b2ef897059a6544 | |
parent | c1768398d4b5e4b26154eefae85ddd1bf193cbf6 (diff) |
Log archiving for functional tests
- Adding log archiving to logs.fd.io for functional tests.
Change-Id: Ie36021840d58d9b1fba1f78a6940a9fe39875943
Signed-off-by: Peter Mikus <pmikus@cisco.com>
-rw-r--r-- | bootstrap-vpp-verify-semiweekly.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/bootstrap-vpp-verify-semiweekly.sh b/bootstrap-vpp-verify-semiweekly.sh index 070dca2892..fa0c30b475 100644 --- a/bootstrap-vpp-verify-semiweekly.sh +++ b/bootstrap-vpp-verify-semiweekly.sh @@ -23,7 +23,12 @@ cat /etc/hosts PYBOT_ARGS="--noncritical MULTI_THREAD" -ARCHIVE_ARTIFACTS=(log.html output.xml report.html) +JOB_ARCHIVE_ARTIFACTS=(log.html output.xml report.html) +LOG_ARCHIVE_ARTIFACTS=(log.html output.xml report.html) +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} @@ -356,10 +361,13 @@ rebot --noncritical EXPECTED_FAILING \ # Remove unnecessary files rm -f ${partial_logs} -# 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 echo Post-processing finished. |