From da0cdf1d6ca8548f77c7ec8341c7cc0c11b2f893 Mon Sep 17 00:00:00 2001
From: Clark Boylan <clark.boylan@gmail.com>
Date: Thu, 18 Jul 2013 14:00:03 -0700
Subject: [PATCH] Copy testr log artifacts independent of OS logs.

* modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml:
Copy testr log artifacts independent of the OpenStack logs. Do this to
put the testr artifacts in the root of the jobs log dir. This is
consistent with the other testr log artifacts.

Change-Id: I4b83c78d83efdd9da8f99c72e85097370dffddc3
---
 .../jenkins_job_builder/config/devstack-gate.yaml     | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml b/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml
index 9ef930c809..f0e6c97403 100644
--- a/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml
+++ b/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml
@@ -95,6 +95,17 @@
     publishers:
       - devstack-logs
       - console-log
+      - scp:
+          site: 'static.openstack.org'
+          files:
+            - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
+              source: '**/testr_results.html.gz'
+              keep-hierarchy: false
+              copy-after-failure: true
+            - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
+              source: '**/subunit_log.txt.gz'
+              keep-hierarchy: false
+              copy-after-failure: true
       - devstack-complete
 
 - job: