Skip to content

Commit

Permalink
ci: build: print log files of failed tasks
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
  • Loading branch information
hnez committed Aug 19, 2024
1 parent 52a51a9 commit 1a20e2a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ jobs:
emmc-image \
emmc-boot-image \
tf-a-stm32mp
- name: Print logs of failed jobs
if: ${{ failure() }}
shell: python
run: |
PREFIX = "ERROR: Logfile of failure stored in: "
for ln in open("build/tmp/log/cooker/lxatac/console-latest.log"):
if not ln.startswith(PREFIX):
continue
path = ln.removeprefix(PREFIX)
content = open(path).read()
print("$ cat", path)
print(content)
- name: Persist the disk image
env:
PERSISTENCE_TOKEN: ${{ secrets.PERSISTENCE_TOKEN }}
Expand Down

0 comments on commit 1a20e2a

Please sign in to comment.