]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-scenario: archive ceph logs on failure
authorAndrew Schoen <aschoen@redhat.com>
Fri, 9 Mar 2018 13:00:31 +0000 (07:00 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 9 Mar 2018 13:51:33 +0000 (07:51 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-ansible-scenario/build/teardown
ceph-ansible-scenario/config/definitions/ceph-ansible-scenario.yml

index 27b9bfa6e25118c33468dacb5922584f4b56aa39..7f2137f482f36f3ac5b7ced46deba2f21c330b68 100644 (file)
@@ -8,6 +8,8 @@ scenarios=$(find . | grep Vagrantfile | xargs dirname)
 
 for scenario in $scenarios; do
     cd $scenario
+    # collect all ceph logs from all test nodes
+    collect_ceph_logs all
     vagrant destroy -f
     cd -
 done
index 8b120d963005ffe2c9d60abdbb3d7e46628edca7..639d7d8ec8314cd6a57bda3f94b41e9cb3c7ab0d 100644 (file)
           script-only-if-succeeded: False
           script-only-if-failed: True
           builders:
-            - shell: !include-raw ../../build/teardown
+            - shell:
+                !include-raw:
+                  - ../../../scripts/build_utils.sh
+                  - ../../build/teardown
+
+      - archive:
+          artifacts: 'logs/**'
+          allow-empty: true
+          latest-only: false