Skip to content

Commit a08cf9e

Browse files
[ci] Fix pipeline issue caused by sonic-slave-* change. (#2709) (#2880)
* [ci] Fix pipeline issue caused by sonic-slave-* change. (#2709) What I did These 3 packages maybe purged by default. Do not block pipeline. Download deb/whl packages only to accelerate download process. How I did it How to verify it * test
1 parent 7c4bfed commit a08cf9e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

azure-pipelines.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ stages:
2929
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-buster:202111
3030

3131
steps:
32+
- script: |
33+
set -ex
34+
# Install .NET CORE
35+
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
36+
sudo apt-add-repository https://packages.microsoft.com/debian/10/prod
37+
sudo apt-get update
38+
sudo apt-get install -y dotnet-sdk-5.0
39+
displayName: "Install .NET CORE"
3240
- task: DownloadPipelineArtifact@2
3341
inputs:
3442
source: specific
@@ -44,7 +52,7 @@ stages:
4452

4553
- script: |
4654
set -xe
47-
sudo apt-get -y purge libhiredis-dev libnl-3-dev libnl-route-3-dev
55+
sudo apt-get -y purge libhiredis-dev libnl-3-dev libnl-route-3-dev || true
4856
sudo dpkg -i libnl-3-200_*.deb
4957
sudo dpkg -i libnl-genl-3-200_*.deb
5058
sudo dpkg -i libnl-route-3-200_*.deb
@@ -84,15 +92,6 @@ stages:
8492
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/buster
8593
displayName: 'Install Python dependencies'
8694
87-
- script: |
88-
set -ex
89-
# Install .NET CORE
90-
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
91-
sudo apt-add-repository https://packages.microsoft.com/debian/10/prod
92-
sudo apt-get update
93-
sudo apt-get install -y dotnet-sdk-5.0
94-
displayName: "Install .NET CORE"
95-
9695
- script: |
9796
python3 setup.py test
9897
displayName: 'Test Python 3'

0 commit comments

Comments
 (0)