Skip to content

Commit

Permalink
[jenkins]: build sonic-vs.vhdx image (sonic-net#102)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <[email protected]>
Co-Authored-By: Qi Luo <[email protected]>
  • Loading branch information
lguohan and qiluo-msft authored Apr 27, 2020
1 parent 38c40a5 commit 22bfa1f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jenkins/vs/buildimage-vs-image/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ mv target/sonic-vs.bin target/sonic-vs-dbg.bin
mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz
mv target/sonic-vs.img.gz.log target/sonic-vs-dbg.img.gz.log
make SONIC_CONFIG_BUILD_JOBS=1 $CACHE_OPTIONS target/sonic-vs.img.gz
read -r -d '' SONIC_RUN_CMDS << EOM
gzip -d -c target/sonic-vs.img.gz > target/sonic-vs.img
qemu-img convert target/sonic-vs.img -O vhdx -o subformat=dynamic target/sonic-vs.vhdx
rm target/sonic-vs.img
EOM
declare -x SONIC_RUN_CMDS
BLDENV=buster make -f Makefile.work sonic-slave-run
rm -rf ../target
mv target ../
Expand Down

0 comments on commit 22bfa1f

Please sign in to comment.