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