From 27029a1ed324ee6a0ba5e38efecba2a2d919e03a Mon Sep 17 00:00:00 2001 From: Serhii Vasheka Date: Tue, 22 Sep 2015 17:55:38 +0300 Subject: [PATCH] Alter horizon.yaml to get screenshots copied. Currently gate-horizon-dsvm-integration job marked UNSTABLE. Previous patches tried to copy files using Jenkins, which caused error. This patch copies the files to the workspace so Jenkins can copy them. Change-Id: I69fb3865889d89b8f4e397b23e5546b2a6e1095f --- jenkins/jobs/horizon.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jenkins/jobs/horizon.yaml b/jenkins/jobs/horizon.yaml index 075ac83586..5c3409fff4 100644 --- a/jenkins/jobs/horizon.yaml +++ b/jenkins/jobs/horizon.yaml @@ -39,6 +39,9 @@ function post_test_hook { cd /opt/stack/new/horizon sudo -H -u stack tox -e py27integration + if [ -d openstack_dashboard/test/integration_tests/integration_tests_screenshots/ ]; then + cp -r openstack_dashboard/test/integration_tests/integration_tests_screenshots/ /home/jenkins/workspace/gate-horizon-dsvm-integration/ + fi } export -f post_test_hook cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh @@ -57,7 +60,7 @@ site: 'static.openstack.org' files: - target: 'logs/$LOG_PATH/screenshots' - source: '/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/integration_tests_screenshots/**' + source: 'integration_tests_screenshots/**' copy-after-failure: true - job: