From 82a6e68217aa95e4453b4f96431db730705c0800 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Tue, 28 Feb 2023 19:52:59 +0000 Subject: [testing] Grab snap build logs on failure Signed-off-by: Arif Ali --- .cirrus.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index ecc57a44..b7016254 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -132,6 +132,11 @@ snap_build_task: snapcraft --destructive-mode packages_artifacts: path: "*.snap" + on_failure: + fail_script: | + ls -d /root/.cache/snapcraft/log 2> /dev/null | xargs tar cf snap-build-fail-logs.tar + log_artifacts: + path: "snap-build-fail-logs.tar" # Run the stage one (no mocking) tests across all distros on GCP report_stageone_task: -- cgit