Upload the iso.log even when the build fails

pull/9329/head
Anders F Björklund 2020-10-01 19:07:10 +02:00
parent 4c8e88ab47
commit 46ea280cd3
1 changed files with 7 additions and 4 deletions

View File

@ -24,7 +24,7 @@ jobs:
stable: true
- name: Download Dependencies
run: go mod download
- name: Install KVM
- name: Install KVM
run: |
sudo apt-get update
sudo apt-get install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
@ -122,11 +122,14 @@ jobs:
GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${TIME_ELAPSED}"
echo ::set-env name=GOPOGH_RESULT::${GOPOGH_RESULT}
echo ::set-env name=STAT::${STAT}
- uses: actions/upload-artifact@v1
- name: Upload report
uses: actions/upload-artifact@v1
with:
name: iso_functional_test_kvm2_ubuntu
path: out/report
- uses: actions/upload-artifact@v1
- name: Upload iso.log
if: always()
uses: actions/upload-artifact@v1
with:
name: iso log
path: out/iso.log
@ -146,4 +149,4 @@ jobs:
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
if [ "$numPass" -eq 0 ];then echo "*** 0 Passed! ***";exit 2;fi
if [ "$numPass" -lt 32 ];then echo "*** Failed to pass at least 32 ! ***";exit 2;fi
if [ "$numPass" -eq 0 ];then echo "*** Passed! ***";exit 0;fi
if [ "$numPass" -eq 0 ];then echo "*** Passed! ***";exit 0;fi