Skip to content

Commit

Permalink
Upgrade pipeline to use bullseye. (#58)
Browse files Browse the repository at this point in the history
Why I did it
GNMI native write needs to use bullseye as build environment.

How I did it
Upgrade pipeline to use bullseye.

How to verify it
PR checker should pass.
  • Loading branch information
ganglyu authored Nov 18, 2022
1 parent 8117415 commit 8226e46
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ stages:
DIFF_COVER_WORKING_DIRECTORY: $(System.DefaultWorkingDirectory)/sonic-gnmi

container:
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-buster:latest
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bullseye:latest

steps:
- checkout: self
Expand Down Expand Up @@ -87,24 +87,25 @@ stages:
sudo service redis-server start
# LIBYANG
sudo dpkg -i ../target/debs/buster/libyang*1.0.73*.deb
sudo dpkg -i ../target/debs/bullseye/libyang*1.0.73*.deb
displayName: "Install dependency"
- script: |
# LIBSWSSCOMMON
sudo apt-get -y purge libhiredis-dev libnl-3-dev libnl-route-3-dev
sudo dpkg -i ../target/debs/buster/libnl-3-200_*.deb
sudo dpkg -i ../target/debs/buster/libnl-genl-3-200_*.deb
sudo dpkg -i ../target/debs/buster/libnl-route-3-200_*.deb
sudo dpkg -i ../target/debs/buster/libnl-nf-3-200_*.deb
sudo dpkg -i ../target/debs/buster/libhiredis0.14_*.deb
sudo dpkg -i ../target/debs/bullseye/libnl-3-200_*.deb
sudo dpkg -i ../target/debs/bullseye/libnl-genl-3-200_*.deb
sudo dpkg -i ../target/debs/bullseye/libnl-route-3-200_*.deb
sudo dpkg -i ../target/debs/bullseye/libnl-nf-3-200_*.deb
sudo dpkg -i ../target/debs/bullseye/libhiredis0.14_*.deb
sudo dpkg -i ../target/debs/bullseye/libhiredis-dev_*.deb
displayName: "Install libswsscommon dependencies"
- script: |
set -ex
# Install .NET CORE
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-add-repository https://packages.microsoft.com/debian/10/prod
sudo apt-add-repository https://packages.microsoft.com/debian/11/prod
sudo apt-get update
sudo apt-get install -y dotnet-sdk-5.0
displayName: "Install .NET CORE"
Expand All @@ -114,7 +115,7 @@ stages:
source: specific
project: build
pipeline: Azure.sonic-swss-common
artifact: sonic-swss-common
artifact: sonic-swss-common.bullseye.amd64
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
displayName: "Download sonic-swss-common"
Expand Down

0 comments on commit 8226e46

Please sign in to comment.