[libvirt PATCH 5/7] ci: integration: Use 'set +e' in the log collecting job

Erik Skultety eskultet at redhat.com
Fri Oct 14 11:28:43 UTC 2022


All 'script' blocks are defined as 'set -e' and so a single failed
return value means we won't collect some of the logs. Because of
the nature of the original job's failure some of the log sources
might not be available, but that's fine, however, the gitlab
after_script job cannot finish prematurely.

Signed-off-by: Erik Skultety <eskultet at redhat.com>
---
 ci/integration-template.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ci/integration-template.yml b/ci/integration-template.yml
index 4321f0d29e..67982c5167 100644
--- a/ci/integration-template.yml
+++ b/ci/integration-template.yml
@@ -55,6 +55,7 @@
 
 
 .collect-logs: &collect-logs
+  - set +e
   - mkdir logs
   - test -d "$SCRATCH_DIR"/avocado && sudo mv "$SCRATCH_DIR"/avocado/latest/test-results logs/avocado;
   - sudo coredumpctl &>/dev/null && sudo coredumpctl info --no-pager > logs/coredumpctl.txt
-- 
2.37.3



More information about the libvir-list mailing list