Publisher for tempest results and upload diagnostic snapshot

Change-Id: I91d9d91b84dc1090d6855a593b39b15bd1e25317
This commit is contained in:
Artur Zarzycki 2017-03-23 09:27:36 +01:00
parent 73baa16463
commit 0606e8765d
2 changed files with 8 additions and 2 deletions

View File

@ -387,7 +387,7 @@ prepare_ccp_config
ccp_install
if [ ${COMPONENT} == "smoke" ]; then
ssh -i ~/.ssh/jenkins_storage share@share01-scc.ng.mirantis.net rm /srv/static/share/tests/tests/result-${VERSION}.xml
${SCP_COMMAND} ccp.yml vagrant@"${ADMIN_IP}":~/
${SSH_COMMAND} "ccp -vvv --debug --config-file ~/ccp.yml fetch"
${SCP_COMMAND} -r ~/skel/* vagrant@"${ADMIN_IP}":/tmp/ccp-repos/rally/service/files
@ -397,7 +397,9 @@ if [ ${COMPONENT} == "smoke" ]; then
DEPLOY_STATUS=$?
#set tag dependent from test result
if [[ "${DEPLOY_STATUS}" != 0 ]]; then
echo "Deployment fail! Check diagnostic snapshot."
echo "Deployment failed! Check diagnostic snapshot."
${SCP_COMMAND} vagrant@"${ADMIN_IP}":~/tmp/ccp-diag/*.tar.gz .
scp -i ~/.ssh/jenkins_storage *.tar.gz share@share01-scc.ng.mirantis.net:/srv/static/share/tests/diagnostic/
exit 1
fi
@ -421,6 +423,7 @@ if [ ${COMPONENT} == "smoke" ]; then
${SSH_COMMAND} kubectl -n ccp logs ${TEMPEST_NAME} | grep -A 9 Totals
${SSH_COMMAND} kubectl -n ccp logs ${TEMPEST_NAME} -p | grep -A 9 Totals
wget http://share01-scc.ng.mirantis.net/tests/tests/result-${VERSION}.xml
set -e
IMG=`sshpass -p vagrant ssh -o StrictHostKeyChecking=no vagrant@${ADMIN_IP} docker images --format "{{.Repository}}" | awk -F'/' -v search=/${IMAGES_NAMESPACE}/ '$0 ~ search {print $3}'`

View File

@ -12,6 +12,9 @@
- shell:
!include-raw-escape 'builders/fuel-ccp-simple-deployment.sh'
publishers:
- junit:
results: result-{version}.html
allow-empty-results: true
- post-tasks:
- matches:
- log-text: ''