Skip to content

Commit

Permalink
[pipeline] Download swss common artifact in a separated directory (so…
Browse files Browse the repository at this point in the history
…nic-net#995)

* Put the downloaded swss common artifact in a separated directory while build sairedis target.
* The downloaded swss common artifact is in a sub-directory of sairedis artifact, then it avoids
   overriding the previous swss common packages.
  • Loading branch information
jimmyzhai authored Jan 24, 2022
1 parent 7a2e096 commit 1b8ce97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
image: sonicdev-microsoft.azurecr.io:443/${{ parameters.sonic_slave }}:latest

steps:
- checkout: self
clean: true
submodules: true
- script: |
sudo apt-get install -qq -y \
qtbase5-dev \
Expand Down Expand Up @@ -98,14 +101,14 @@ jobs:
artifact: ${{ parameters.swss_common_artifact_name }}
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Build.SourcesDirectory)/${{ parameters.swss_common_artifact_name }}'
displayName: "Download sonic swss common deb packages"
- script: |
cd $(Build.SourcesDirectory)/${{ parameters.swss_common_artifact_name }}
sudo dpkg -i libswsscommon_1.0.0_${{ parameters.arch }}.deb
sudo dpkg -i libswsscommon-dev_1.0.0_${{ parameters.arch }}.deb
workingDirectory: $(Pipeline.Workspace)
displayName: "Install sonic swss Common"
- checkout: self
submodules: true
- script: |
set -ex
./autogen.sh
Expand Down

0 comments on commit 1b8ce97

Please sign in to comment.