[skip e2e]Set the log to be exported when the job is not successful (#17533)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2022-06-14 09:10:09 +08:00 committed by GitHub
parent 731137d4d8
commit 47881e7a59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -175,7 +175,7 @@ jobs:
from: GitHub Actions
- name: Upload logs
if: ${{ failure() }}
if: ${{ ! success() }}
uses: actions/upload-artifact@v2
with:
name: docker-compose-logs-${{ matrix.mode }}-${{ matrix.task }}
@ -340,7 +340,7 @@ jobs:
bash ../../scripts/export_log_k8s.sh default deploy-testing k8s_logs/second_deploy
- name: Upload logs
if: ${{ failure() }}
if: ${{ ! success() }}
uses: actions/upload-artifact@v2
with:
name: helm-log-${{ matrix.mode }}-${{ matrix.task }}

View File

@ -185,7 +185,7 @@ jobs:
bash ../../scripts/export_log_k8s.sh chaos-testing chaos-daemon
- name: Upload logs
if: ${{ always() }}
if: ${{ ! success() }}
uses: actions/upload-artifact@v2
with:
name: logs-${{ matrix.pod }}-${{ matrix.chaos_type }}

View File

@ -222,7 +222,7 @@ jobs:
bash ../../scripts/export_log_k8s.sh chaos-testing chaos-daemon k8s_logs/chaos-mesh-daemon
- name: Upload logs
if: ${{ always() }}
if: ${{ ! success() }}
uses: actions/upload-artifact@v2
with:
name: logs-${{ matrix.pod }}

View File

@ -222,7 +222,7 @@ jobs:
bash ../../scripts/export_log_k8s.sh chaos-testing chaos-daemon k8s_logs/chaos-mesh-daemon
- name: Upload logs
if: ${{ failure() }}
if: ${{ ! success() }}
uses: actions/upload-artifact@v2
with:
name: logs-${{ matrix.pod }}