Skip to content

Commit 6ff8d2c

Browse files
authored
[ci]: add mellanox build to azure-pipeline (#6409)
Signed-off-by: Guohan Lu <[email protected]>
1 parent 4ef3f13 commit 6ff8d2c

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

azure-pipelines.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ stages:
2525
jobs:
2626
- job:
2727
displayName: "broadcom"
28-
timeoutInMinutes: 3600
28+
timeoutInMinutes: 600
2929
steps:
3030
- checkout: self
3131
submodules: recursive
@@ -44,9 +44,30 @@ stages:
4444
artifact: sonic-buildimage.broadcom
4545
displayName: "Archive sonic image"
4646

47+
- job:
48+
displayName: "mellanox"
49+
timeoutInMinutes: 600
50+
steps:
51+
- checkout: self
52+
submodules: recursive
53+
displayName: 'Checkout code'
54+
55+
- script: |
56+
sudo modprobe overlay
57+
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/mellanox"
58+
ENABLE_DOCKER_BASE_PULL=y make configure PLATFORM=mellanox
59+
make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS target/sonic-mellanox.bin
60+
displayName: 'Build sonic image'
61+
- script: |
62+
sudo rm -rf fsroot
63+
displayName: 'Clean up build artifacts'
64+
- publish: $(System.DefaultWorkingDirectory)/
65+
artifact: sonic-buildimage.mellanox
66+
displayName: "Archive sonic image"
67+
4768
- job:
4869
displayName: "kvm"
49-
timeoutInMinutes: 3600
70+
timeoutInMinutes: 600
5071
steps:
5172
- checkout: self
5273
submodules: recursive

0 commit comments

Comments
 (0)