Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade pipeline to use bullseye. #58

Merged
merged 5 commits into from
Nov 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-dev_

Do you need all the dev packages?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, build failed without these dev packages.

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