[ci]: gzip the vm image disk and memdmp (#7131)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
parent
93a54450d3
commit
dbc7a45c73
@ -49,6 +49,8 @@ steps:
|
||||
virsh -c qemu:///system dumpxml ${{ parameters.dut }} > $(Build.ArtifactStagingDirectory)/kvmdump/${{ parameters.dut }}.xml
|
||||
img=$(virsh -c qemu:///system domblklist ${{ parameters.dut }} | grep vda | awk '{print $2}')
|
||||
cp $img $(Build.ArtifactStagingDirectory)/kvmdump/${{ parameters.dut }}.img
|
||||
gzip $(Build.ArtifactStagingDirectory)/kvmdump/${{ parameters.dut }}.img
|
||||
sudo gzip $(Build.ArtifactStagingDirectory)/kvmdump/${{ parameters.dut }}.memdmp
|
||||
virsh -c qemu:///system undefine ${{ parameters.dut }}
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user