Skip to content

Commit 1929332

Browse files
Fix pipeline apt-get purge error. (sonic-net#349)
* Fix pipeline apt-get purge error.
1 parent 3d57e0e commit 1929332

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

azure-pipelines.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ steps:
3333
artifact: sonic-buildimage.vs
3434
runVersion: 'latestFromBranch'
3535
runBranch: 'refs/heads/$(BRANCH_NAME)'
36+
patterns: |
37+
**/*.whl
38+
**/*.deb
39+
path: '$(Build.ArtifactStagingDirectory)'
3640
displayName: "Download artifacts from latest sonic-buildimage build"
3741

3842
- script: |
3943
set -xe
40-
sudo apt-get -y purge libhiredis-dev libnl-3-dev libnl-route-3-dev
44+
sudo apt-get -y purge libhiredis-dev libnl-3-dev libnl-route-3-dev || true
4145
sudo dpkg -i libyang_1.0.73_amd64.deb \
4246
libnl-3-200_*.deb \
4347
libnl-genl-3-200_*.deb \
@@ -46,7 +50,7 @@ steps:
4650
libhiredis0.14_*.deb \
4751
libswsscommon_1.0.0_amd64.deb \
4852
python3-swsscommon_1.0.0_amd64.deb
49-
workingDirectory: $(Pipeline.Workspace)/target/debs/bullseye/
53+
workingDirectory: $(Build.ArtifactStagingDirectory)/target/debs/bullseye/
5054
displayName: 'Install Debian dependencies'
5155

5256
- script: |
@@ -56,7 +60,7 @@ steps:
5660
sudo pip3 install sonic_yang_mgmt-1.0-py3-none-any.whl
5761
sudo pip3 install sonic_yang_models-1.0-py3-none-any.whl
5862
sudo pip3 install sonic_config_engine-1.0-py3-none-any.whl
59-
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/bullseye/
63+
workingDirectory: $(Build.ArtifactStagingDirectory)/target/python-wheels/bullseye/
6064
displayName: 'Install Python dependencies'
6165

6266
- script: |

0 commit comments

Comments
 (0)