improve yardstick logger to output Debug info to artifacts 45/26545/4
authorrexlee8776 <limingjiang@huawei.com>
Wed, 28 Dec 2016 09:25:10 +0000 (09:25 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Fri, 30 Dec 2016 09:26:04 +0000 (09:26 +0000)
JIRA: RELENG-158

Change-Id: I3bd91c671fa3dcac5cd47ca12610457fd1ab5a5b
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
jjb/yardstick/yardstick-ci-jobs.yml
jjb/yardstick/yardstick-daily.sh

index 33f557a..1ad5417 100644 (file)
         - 'yardstick-cleanup'
         #- 'yardstick-fetch-os-creds'
         - 'yardstick-{testsuite}'
+        - 'yardstick-store-results'
 
     publishers:
         - email:
         - shell:
             !include-raw: ../../utils/fetch_os_creds.sh
 
+- builder:
+    name: yardstick-store-results
+    builders:
+        - shell:
+            !include-raw: ../../utils/push-test-logs.sh
+
 - builder:
     name: yardstick-cleanup
     builders:
index b370541..da9042b 100755 (executable)
@@ -37,8 +37,15 @@ envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
 echo "Yardstick: Pulling image opnfv/yardstick:${DOCKER_TAG}"
 docker pull opnfv/yardstick:$DOCKER_TAG >$redirect
 
+# map log directory
+branch=${GIT_BRANCH##*/}
+dir_result="${HOME}/opnfv/yardstick/results/${branch}"
+mkdir -p ${dir_result}
+sudo rm -rf ${dir_result}/*
+map_log_dir="-v ${dir_result}:/tmp/yardstick"
+
 # Run docker
-cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick:${DOCKER_TAG} \
+cmd="sudo docker run ${opts} ${envs} ${labconfig} ${map_log_dir} ${sshkey} opnfv/yardstick:${DOCKER_TAG} \
     exec_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SCENARIO_SUITE_NAME}"
 echo "Yardstick: Running docker cmd: ${cmd}"
 ${cmd}