Skip to content

Commit

Permalink
Update azure pipeline to use Bookworm (sonic-net#523)
Browse files Browse the repository at this point in the history
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
  • Loading branch information
saiarcot895 authored Dec 18, 2024
1 parent e955e58 commit 9ca0f69
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pool:
vmImage: 'ubuntu-20.04'

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

steps:
- task: DownloadPipelineArtifact@2
Expand All @@ -49,7 +49,7 @@ steps:
libnl-nf-3-200_*.deb \
libswsscommon_1.0.0_amd64.deb \
python3-swsscommon_1.0.0_amd64.deb
workingDirectory: $(Build.ArtifactStagingDirectory)/target/debs/bullseye/
workingDirectory: $(Build.ArtifactStagingDirectory)/target/debs/bookworm/
displayName: 'Install Debian dependencies'

- script: |
Expand All @@ -59,7 +59,7 @@ steps:
sudo pip3 install sonic_yang_mgmt-1.0-py3-none-any.whl
sudo pip3 install sonic_yang_models-1.0-py3-none-any.whl
sudo pip3 install sonic_config_engine-1.0-py3-none-any.whl
workingDirectory: $(Build.ArtifactStagingDirectory)/target/python-wheels/bullseye/
workingDirectory: $(Build.ArtifactStagingDirectory)/target/python-wheels/bookworm/
displayName: 'Install Python dependencies'

- script: |
Expand All @@ -69,12 +69,15 @@ steps:
. /etc/os-release
sudo apt-add-repository https://packages.microsoft.com/debian/$VERSION_ID/prod
sudo apt-get update
sudo apt-get install -y dotnet-sdk-5.0
sudo apt-get install -y dotnet-sdk-8.0
displayName: "Install .NET CORE"

# Python 3
- script: |
python3 setup.py test
set -ex
pip3 install ".[testing]"
pip3 uninstall --yes sonic-platform-common
pytest
displayName: 'Test Python 3'

- task: PublishTestResults@2
Expand All @@ -93,8 +96,7 @@ steps:
displayName: 'Publish Python 3 test coverage'

- script: |
set -e
python3 setup.py bdist_wheel
python3 -m build -n
displayName: 'Build Python 3 wheel'

- publish: '$(System.DefaultWorkingDirectory)/dist/'
Expand Down

0 comments on commit 9ca0f69

Please sign in to comment.