Call collect_logs in a publisher
[releng/builder.git] / jjb / integration / integration-macros.yaml
index 51eeb993a432b3d2b403dba25ac708791988cc81..776d7d5396cce89da95e364cd2af9ee050f3da88 100644 (file)
                     fi
                     rm ${HOME}/.netrc
           mark-unstable-if-failed: true
+
+- publisher:
+    name: integration-csit-collect-logs
+    publishers:
+      - postbuildscript:
+          builders:
+            - role: BOTH
+              build-on:
+                - ABORTED
+                - FAILURE
+                - NOT_BUILT
+                - SUCCESS
+                - UNSTABLE
+              build-steps:
+                - inject:
+                    properties-file: 'slave_addresses.txt'
+                - shell: |
+                    #!/bin/bash
+                    source /tmp/common-functions.sh ${BUNDLEFOLDER}
+                    collect_logs
+          mark-unstable-if-failed: true