]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-nightly: archive ceph logs on test failure
authorAndrew Schoen <aschoen@redhat.com>
Fri, 9 Mar 2018 12:59:03 +0000 (06:59 -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-nightly/build/teardown
ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.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 16a374db525da436c1cf740f89d4cad224f63e78..e6644f8c15bea5eaa568315e609b6f087e6174d9 100644 (file)
           script-only-if-succeeded: False
           script-only-if-failed: True
           builders:
-            - shell: !include-raw ../../build/teardown
+            - shell:
+                !include-raw-escape:
+                  - ../../../scripts/build_utils.sh
+                  - ../../build/teardown
+
+      - archive:
+          artifacts: 'logs/**'
+          allow-empty: true
+          latest-only: false