Skip to content

Commit d09acc4

Browse files
committed
CLOUDSTACK-7153: only archive the zipped hyperv image
1 parent a6c1ca1 commit d09acc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/appliance/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,8 @@ function hyperv_export() {
497497
# HyperV doesn't support import a zipped image from S3,
498498
# but we create a zipped version to save space on the jenkins box
499499
zip "${appliance_build_name}-hyperv.vhd.zip" "${appliance_build_name}-hyperv.vhd"
500-
mv "${appliance_build_name}-hyperv.vhd.zip" "${appliance_build_name}-hyperv.vhd" dist/
500+
add_on_exit rm "${appliance_build_name}-hyperv.vhd"
501+
mv "${appliance_build_name}-hyperv.vhd.zip" dist/
501502
log INFO "${appliance} exported for HyperV: dist/${appliance_build_name}-hyperv.vhd.zip"
502503
}
503504

0 commit comments

Comments
 (0)