ci : Preserve the docker logs across the parallel cypress runs to debug failures (#20671)

Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
This commit is contained in:
Trisha Anand 2023-02-16 14:12:57 +05:30 committed by GitHub
parent f28cba4735
commit 650ddf655c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,17 +380,17 @@ jobs:
env: "NODE_ENV=development"
- name: Collect CI container logs
if: always()
if: failure()
working-directory: "."
run: |
docker logs appsmith 2>&1 > ~/dockerlogs.txt
# Upload docker logs
- name: Upload failed test list artifact
if: always()
if: failure()
uses: actions/upload-artifact@v3
with:
name: dockerlogs
name: dockerlogs-${{ matrix.job }}
path: ~/dockerlogs.txt
# Set status = failedtest