Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liushilongbuaa committed May 21, 2024
1 parent 556a7b6 commit af56d1b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 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-${{ parameters.dist }}:master

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

- script: |
Expand All @@ -44,14 +48,14 @@ 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: |
Expand Down

0 comments on commit af56d1b

Please sign in to comment.