Skip to content

Commit 1b8ce97

Browse files
authored
[pipeline] Download swss common artifact in a separated directory (#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.
1 parent 7a2e096 commit 1b8ce97

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.azure-pipelines/build-template.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
image: sonicdev-microsoft.azurecr.io:443/${{ parameters.sonic_slave }}:latest
5959

6060
steps:
61+
- checkout: self
62+
clean: true
63+
submodules: true
6164
- script: |
6265
sudo apt-get install -qq -y \
6366
qtbase5-dev \
@@ -98,14 +101,14 @@ jobs:
98101
artifact: ${{ parameters.swss_common_artifact_name }}
99102
runVersion: 'latestFromBranch'
100103
runBranch: 'refs/heads/master'
104+
path: '$(Build.SourcesDirectory)/${{ parameters.swss_common_artifact_name }}'
101105
displayName: "Download sonic swss common deb packages"
102106
- script: |
107+
cd $(Build.SourcesDirectory)/${{ parameters.swss_common_artifact_name }}
103108
sudo dpkg -i libswsscommon_1.0.0_${{ parameters.arch }}.deb
104109
sudo dpkg -i libswsscommon-dev_1.0.0_${{ parameters.arch }}.deb
105110
workingDirectory: $(Pipeline.Workspace)
106111
displayName: "Install sonic swss Common"
107-
- checkout: self
108-
submodules: true
109112
- script: |
110113
set -ex
111114
./autogen.sh

0 commit comments

Comments
 (0)