diff options
author | Arif Ali <arif.ali@canonical.com> | 2023-02-28 19:52:59 +0000 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2023-03-01 11:51:01 -0500 |
commit | 82a6e68217aa95e4453b4f96431db730705c0800 (patch) | |
tree | 1c530b0c3148adc1145eefa5da0b8fab0e3f5ae0 | |
parent | 4a8af60145770c03d92a4b0800134bb7eb70d698 (diff) | |
download | sos-82a6e68217aa95e4453b4f96431db730705c0800.tar.gz |
[testing] Grab snap build logs on failure
Signed-off-by: Arif Ali <arif.ali@canonical.com>
-rw-r--r-- | .cirrus.yml | 5 |
1 files changed, 5 insertions, 0 deletions
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: |