diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-06-17 13:29:50 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-06-17 10:30:50 +0000 |
commit | 3f4152994057d2532f26e55f505e05e7a2717411 (patch) | |
tree | c130512c57694d4c64db01aa35b1299eba4f7377 /leg-cloud-image-centos.yaml | |
parent | 48c38d7d427383e12c0c3f7fcd313b6ef4406cc2 (diff) |
leg-cloud-image-centos: clean up image after publishing
Change-Id: I99a2bc8dce46e5c53d5afdf9ed38a57cc65fdb4a
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'leg-cloud-image-centos.yaml')
-rw-r--r-- | leg-cloud-image-centos.yaml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/leg-cloud-image-centos.yaml b/leg-cloud-image-centos.yaml index a329ba69c5..73c5a58845 100644 --- a/leg-cloud-image-centos.yaml +++ b/leg-cloud-image-centos.yaml @@ -28,13 +28,8 @@ set -ex - sudo yum install -y \ - AAVMF \ - ebtables \ - qemu-kvm \ - virt-install + sudo yum install -y virt-install - sudo virsh capabilities sudo virsh pool-list --all sudo virsh net-list --all @@ -82,6 +77,8 @@ sudo virsh list --all sudo virsh pool-list --all sudo virsh net-list --all + sudo virsh destroy ${IMAGE_NAME} + sudo virsh undefine ${IMAGE_NAME} # Publish test -d ${HOME}/bin || mkdir ${HOME}/bin @@ -90,6 +87,8 @@ --api_version 3 \ --link-latest \ /var/lib/libvirt/images snapshots/developer-cloud/centos/cloud-image/${BUILD_NUMBER} + + sudo rm -f /var/lib/libvirt/images/centos7-cloud-image.qcow2 publishers: - email: recipients: 'fathi.boudra@linaro.org marcin.juszkiewicz@linaro.org' |