From 6ff8d2cb1039a5c1d52c18cb8935a244f5fa5b76 Mon Sep 17 00:00:00 2001 From: lguohan Date: Tue, 12 Jan 2021 06:01:59 -0800 Subject: [PATCH] [ci]: add mellanox build to azure-pipeline (#6409) Signed-off-by: Guohan Lu --- azure-pipelines.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a700f98ec..12b471137b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,7 +25,7 @@ stages: jobs: - job: displayName: "broadcom" - timeoutInMinutes: 3600 + timeoutInMinutes: 600 steps: - checkout: self submodules: recursive @@ -44,9 +44,30 @@ stages: artifact: sonic-buildimage.broadcom displayName: "Archive sonic image" + - job: + displayName: "mellanox" + timeoutInMinutes: 600 + steps: + - checkout: self + submodules: recursive + displayName: 'Checkout code' + + - script: | + sudo modprobe overlay + CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/mellanox" + ENABLE_DOCKER_BASE_PULL=y make configure PLATFORM=mellanox + make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS target/sonic-mellanox.bin + displayName: 'Build sonic image' + - script: | + sudo rm -rf fsroot + displayName: 'Clean up build artifacts' + - publish: $(System.DefaultWorkingDirectory)/ + artifact: sonic-buildimage.mellanox + displayName: "Archive sonic image" + - job: displayName: "kvm" - timeoutInMinutes: 3600 + timeoutInMinutes: 600 steps: - checkout: self submodules: recursive