Skip to content

Commit edeffe1

Browse files
committed
Install sonic-buildimage libnl3 for AZP
1 parent 1020de7 commit edeffe1

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.azure-pipelines/build-swss-template.yml

+18-5
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ jobs:
5050
sudo apt-get install -y libzmq5 libzmq3-dev
5151
sudo apt-get install -qq -y \
5252
libhiredis-dev \
53-
libnl-3-dev \
54-
libnl-genl-3-dev \
55-
libnl-route-3-dev \
56-
libnl-nf-3-dev \
5753
swig3.0
5854
sudo apt-get install -y libdbus-1-3
5955
sudo apt-get install -y libteam-dev \
@@ -73,7 +69,24 @@ jobs:
7369
inputs:
7470
artifact: ${{ parameters.sairedis_artifact_name }}
7571
displayName: "Download sonic sairedis deb packages"
72+
- task: DownloadPipelineArtifact@2
73+
inputs:
74+
source: specific
75+
project: build
76+
pipeline: 1
77+
artifact: sonic-buildimage.vs
78+
runVersion: 'latestFromBranch'
79+
runBranch: 'refs/heads/master'
80+
displayName: "Download sonic buildimage"
7681
- script: |
82+
sudo dpkg -i target/debs/buster/libnl-3-200_*.deb
83+
sudo dpkg -i target/debs/buster/libnl-3-dev_*.deb
84+
sudo dpkg -i target/debs/buster/libnl-genl-3-200_*.deb
85+
sudo dpkg -i target/debs/buster/libnl-genl-3-dev_*.deb
86+
sudo dpkg -i target/debs/buster/libnl-route-3-200_*.deb
87+
sudo dpkg -i target/debs/buster/libnl-route-3-dev_*.deb
88+
sudo dpkg -i target/debs/buster/libnl-nf-3-200_*.deb
89+
sudo dpkg -i target/debs/buster/libnl-nf-3-dev_*.deb
7790
sudo dpkg -i libswsscommon_1.0.0_${{ parameters.arch }}.deb
7891
sudo dpkg -i libswsscommon-dev_1.0.0_${{ parameters.arch }}.deb
7992
sudo dpkg -i libsaivs_*.deb
@@ -84,7 +97,7 @@ jobs:
8497
sudo dpkg -i libsaimetadata-dev_*.deb
8598
sudo dpkg -i syncd-vs_*.deb
8699
workingDirectory: $(Pipeline.Workspace)
87-
displayName: "Install sonic swss common and sairedis"
100+
displayName: "Install libnl3, sonic swss common, and sairedis"
88101
- checkout: sonic-swss
89102
path: s
90103
submodules: true

azure-pipelines.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ stages:
3535
- template: .azure-pipelines/build-template.yml
3636
parameters:
3737
arch: armhf
38-
timeout: 180
38+
timeout: 240
3939
pool: sonicbld
4040
sonic_slave: sonic-slave-buster-armhf
4141
swss_common_artifact_name: sonic-swss-common.armhf
@@ -45,7 +45,7 @@ stages:
4545
- template: .azure-pipelines/build-template.yml
4646
parameters:
4747
arch: arm64
48-
timeout: 180
48+
timeout: 240
4949
pool: sonicbld
5050
sonic_slave: sonic-slave-buster-arm64
5151
swss_common_artifact_name: sonic-swss-common.arm64

0 commit comments

Comments
 (0)