CLOUDSTACK-7143: only archive the zipped hyperv image

Cherry-pick of d09acc44f2b36cd593ebe97ab1673b7757ea2c25.
This commit is contained in:
Leo Simons 2014-07-31 15:23:18 +02:00 committed by Rohit Yadav
parent d56e950e85
commit 115b2cf8e7
1 changed files with 2 additions and 1 deletions

View File

@ -497,7 +497,8 @@ function hyperv_export() {
# HyperV doesn't support import a zipped image from S3,
# but we create a zipped version to save space on the jenkins box
zip "${appliance_build_name}-hyperv.vhd.zip" "${appliance_build_name}-hyperv.vhd"
mv "${appliance_build_name}-hyperv.vhd.zip" "${appliance_build_name}-hyperv.vhd" dist/
add_on_exit rm "${appliance_build_name}-hyperv.vhd"
mv "${appliance_build_name}-hyperv.vhd.zip" dist/
log INFO "${appliance} exported for HyperV: dist/${appliance_build_name}-hyperv.vhd.zip"
}