Skip to content

Commit

Permalink
[ci] Fix pipeline issue caused by dist upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
liushilongbuaa committed Dec 4, 2024
1 parent d5fa793 commit 8bbda02
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ trigger:

parameters:
- name: dist
default: bullseye
default: bookworm

variables:
DIFF_COVER_CHECK_THRESHOLD: 80
DIFF_COVER_ENABLE: 'true'
DIFF_COVER_WORKING_DIRECTORY: $(System.DefaultWorkingDirectory)

pool:
vmImage: 'ubuntu-20.04'
vmImage: 'ubuntu-24.04'

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

steps:
- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: build
pipeline: 1
pipeline: 142
artifact: sonic-buildimage.vs
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
Expand All @@ -40,7 +40,7 @@ steps:
- script: |
set -xe
sudo apt-get -y purge libhiredis-dev libnl-3-dev libnl-route-3-dev
sudo apt install -y libhiredis0.14
sudo apt install -y libhiredis0.14 dotnet-sdk-8.0
sudo dpkg -i libnl-3-200_*.deb
sudo dpkg -i libnl-genl-3-200_*.deb
sudo dpkg -i libnl-route-3-200_*.deb
Expand All @@ -58,16 +58,6 @@ steps:
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/11/prod
sudo apt-get update
sudo apt-get install -y dotnet-sdk-5.0
displayName: "Install .NET CORE"


# Python 3
- script: |
python3 setup.py test
Expand Down

0 comments on commit 8bbda02

Please sign in to comment.