Skip to content

Commit

Permalink
[testing] Grab snap build logs on failure
Browse files Browse the repository at this point in the history
Signed-off-by: Arif Ali <arif.ali@canonical.com>
  • Loading branch information
arif-ali authored and TurboTurtle committed Mar 1, 2023
1 parent 4a8af60 commit 82a6e68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 82a6e68

Please sign in to comment.