From 53c2a0a606cb2f77f46ca394fc17833c41fcecce Mon Sep 17 00:00:00 2001 From: lguohan Date: Tue, 19 Jan 2021 09:35:19 -0800 Subject: [PATCH] [ci]: build docker-sonic-vs.gz in kvm build pipeline (#6494) Signed-off-by: Guohan Lu --- .artifactignore | 1 + azure-pipelines.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.artifactignore b/.artifactignore index 9f32760107..4e039ee7c0 100644 --- a/.artifactignore +++ b/.artifactignore @@ -2,3 +2,4 @@ !target/*.bin !target/*.log !target/*.img.gz +!target/docker-sonic-vs.gz diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8ba75bd868..bfa9e83875 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -75,7 +75,8 @@ stages: CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/vs" ENABLE_DOCKER_BASE_PULL=y make configure PLATFORM=vs trap "sudo rm -rf fsroot" EXIT - make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS target/sonic-vs.img.gz && \ + make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS \ + target/docker-sonic-vs.gz target/sonic-vs.img.gz && \ sudo cp target/sonic-vs.img.gz /nfs/azpl/kvmimage/sonic-vs.$(Build.BuildNumber).img.gz displayName: 'Build sonic image' - publish: $(System.DefaultWorkingDirectory)/