Skip to content

Commit

Permalink
Merge branch 'master' into fix/lldp_invalid_name
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaohuiS authored May 22, 2024
2 parents f213158 + bc63571 commit d49c4c8
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ trigger:
include:
- '*'

parameters:
- name: dist
default: bullseye

variables:
DIFF_COVER_CHECK_THRESHOLD: 80
DIFF_COVER_ENABLE: 'true'
Expand All @@ -17,7 +21,7 @@ pool:
vmImage: 'ubuntu-20.04'

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

steps:
- task: DownloadPipelineArtifact@2
Expand All @@ -28,6 +32,9 @@ steps:
artifact: sonic-buildimage.vs
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
patterns: |
target/debs/${{ parameters.dist }}/*.deb
target/python-wheels/${{ parameters.dist }}/*.whl
displayName: "Download artifacts from latest sonic-buildimage build"

- script: |
Expand All @@ -41,21 +48,21 @@ steps:
sudo dpkg -i libyang_1.*.deb
sudo dpkg -i libswsscommon_1.0.0_amd64.deb
sudo dpkg -i python3-swsscommon_1.0.0_amd64.deb
workingDirectory: $(Pipeline.Workspace)/target/debs/buster/
workingDirectory: $(Pipeline.Workspace)/target/debs/${{ parameters.dist }}/
displayName: 'Install Debian dependencies'

- script: |
set -xe
sudo pip3 install swsssdk-2.0.1-py3-none-any.whl
sudo pip3 install sonic_py_common-1.0-py3-none-any.whl
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/buster/
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/${{ parameters.dist }}/
displayName: 'Install Python 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 Down

0 comments on commit d49c4c8

Please sign in to comment.