From 1b8ce978c294135ea4231a57a44c29fbdce59130 Mon Sep 17 00:00:00 2001 From: Junhua Zhai Date: Mon, 24 Jan 2022 20:21:33 +0800 Subject: [PATCH] [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. --- .azure-pipelines/build-template.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index 82cfd4a05d4b..355897ea9cda 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -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 \ @@ -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