Skip to content

Commit 86c0522

Browse files
committed
Upload MAAS logs if failure
1 parent 9a6bb81 commit 86c0522

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/cypress.yml

+9
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ jobs:
5454
start: yarn start
5555
spec: cypress/e2e/${{ matrix.groups }}/**/*.spec.ts
5656
wait-on: ${{env.MAAS_UI_URL}}/MAAS/r/machines
57+
- name: Generate logs
58+
if: failure()
59+
shell: bash
60+
run: journalctl -u snap.maas.pebble.service --since="1 hour ago" > cypress/maas_logs.txt
61+
- uses: actions/upload-artifact@v4
62+
if: failure()
63+
with:
64+
name: maas_logs.txt
65+
path: cypress/maas_logs.txt
5766
- uses: actions/upload-artifact@v4
5867
if: failure()
5968
with:

0 commit comments

Comments
 (0)