Skip to content

Commit e6699a0

Browse files
Add pipeline to build vhdx image. (#8665)
* Add pipeline to build vhdx image
1 parent 1a2e852 commit e6699a0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.azure-pipelines/azure-pipelines-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ jobs:
104104
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-vs.img.gz && mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz
105105
fi
106106
make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz
107+
if [ $(Build.Reason) != 'PullRequest' ];then
108+
gzip -kd target/sonic-vs.img.gz
109+
SONIC_RUN_CMDS="qemu-img convert target/sonic-vs.img -O vhdx -o subformat=dynamic target/sonic-vs.vhdx" make sonic-slave-run
110+
rm target/sonic-vs.img
111+
fi
107112
else
108113
if [ $(dbg_image) == yes ]; then
109114
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-$(GROUP_NAME).bin && \

0 commit comments

Comments
 (0)