summaryrefslogtreecommitdiffstats
path: root/jjb/yardstick/yardstick-daily.sh
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2016-12-28 09:25:10 +0000
committerrexlee8776 <limingjiang@huawei.com>2016-12-30 09:26:04 +0000
commit27d5ffa1bffcf433a543e29f4445d39e5c0392a5 (patch)
tree4c9d118da4310402c1fec9028e2e043be4d2764e /jjb/yardstick/yardstick-daily.sh
parentb9504790eb877550fda998b492934ef9ea8062c7 (diff)
improve yardstick logger to output Debug info to artifacts
JIRA: RELENG-158 Change-Id: I3bd91c671fa3dcac5cd47ca12610457fd1ab5a5b Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'jjb/yardstick/yardstick-daily.sh')
-rwxr-xr-xjjb/yardstick/yardstick-daily.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/jjb/yardstick/yardstick-daily.sh b/jjb/yardstick/yardstick-daily.sh
index b3705415f..da9042bbc 100755
--- a/jjb/yardstick/yardstick-daily.sh
+++ b/jjb/yardstick/yardstick-daily.sh
@@ -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}