[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 from: GitHub Actions
- name: Upload logs - name: Upload logs
if: ${{ failure() }} if: ${{ ! success() }}
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: docker-compose-logs-${{ matrix.mode }}-${{ matrix.task }} 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 bash ../../scripts/export_log_k8s.sh default deploy-testing k8s_logs/second_deploy
- name: Upload logs - name: Upload logs
if: ${{ failure() }} if: ${{ ! success() }}
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: helm-log-${{ matrix.mode }}-${{ matrix.task }} name: helm-log-${{ matrix.mode }}-${{ matrix.task }}

View File

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