diff --git a/.azure-pipelines/build-docker-sonic-vs-template.yml b/.azure-pipelines/build-docker-sonic-vs-template.yml index 163230a66..16042c74f 100644 --- a/.azure-pipelines/build-docker-sonic-vs-template.yml +++ b/.azure-pipelines/build-docker-sonic-vs-template.yml @@ -43,6 +43,7 @@ jobs: path: $(Build.ArtifactStagingDirectory)/download runVersion: 'latestFromBranch' runBranch: 'refs/heads/$(BUILD_BRANCH)' + allowPartiallySucceededBuilds: true displayName: "Download sonic swss common deb packages" - task: DownloadPipelineArtifact@2 inputs: diff --git a/.azure-pipelines/build-swss-template.yml b/.azure-pipelines/build-swss-template.yml index 0ca1ea72c..90850974a 100644 --- a/.azure-pipelines/build-swss-template.yml +++ b/.azure-pipelines/build-swss-template.yml @@ -58,6 +58,8 @@ jobs: git status displayName: Set up sonic-swss branch - script: | + set -ex + sudo apt-get update sudo apt-get install -y libhiredis0.14 libhiredis-dev sudo apt-get install -y libzmq5 libzmq3-dev sudo apt-get install -qq -y \ @@ -76,6 +78,7 @@ jobs: artifact: ${{ parameters.swss_common_artifact_name }} runVersion: 'latestFromBranch' runBranch: 'refs/heads/$(BUILD_BRANCH)' + allowPartiallySucceededBuilds: true path: $(Build.ArtifactStagingDirectory)/download patterns: | libswsscommon_1.0.0_*.deb diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index a7bb26769..49db3d521 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -66,6 +66,8 @@ jobs: clean: true submodules: true - script: | + set -ex + sudo apt-get update sudo apt-get install -qq -y \ qtbase5-dev \ libdbus-glib-1-2 \ @@ -137,6 +139,7 @@ jobs: artifact: ${{ parameters.swss_common_artifact_name }} runVersion: 'latestFromBranch' runBranch: 'refs/heads/$(BUILD_BRANCH)' + allowPartiallySucceededBuilds: true path: $(Build.ArtifactStagingDirectory)/download displayName: "Download sonic swss common deb packages" - script: | diff --git a/.azure-pipelines/build_and_install_module.sh b/.azure-pipelines/build_and_install_module.sh index 493a2f04e..35c519634 100755 --- a/.azure-pipelines/build_and_install_module.sh +++ b/.azure-pipelines/build_and_install_module.sh @@ -26,6 +26,7 @@ function build_and_install_kmodule() SUBLEVEL=$(echo $KERNEL_MAINVERSION | cut -d. -f3) # Install the required debian packages to build the kernel modules + apt-get update apt-get install -y build-essential linux-headers-${KERNEL_RELEASE} autoconf pkg-config fakeroot apt-get install -y flex bison libssl-dev libelf-dev apt-get install -y libnl-route-3-200 libnl-route-3-dev libnl-cli-3-200 libnl-cli-3-dev libnl-3-dev diff --git a/.azure-pipelines/test-docker-sonic-vs-template.yml b/.azure-pipelines/test-docker-sonic-vs-template.yml index 16914f4c9..9390629d0 100644 --- a/.azure-pipelines/test-docker-sonic-vs-template.yml +++ b/.azure-pipelines/test-docker-sonic-vs-template.yml @@ -42,12 +42,14 @@ jobs: path: $(Build.ArtifactStagingDirectory)/download runVersion: 'latestFromBranch' runBranch: 'refs/heads/$(BUILD_BRANCH)' + allowPartiallySucceededBuilds: true displayName: "Download sonic swss common deb packages" - script: | set -ex sudo sonic-sairedis/.azure-pipelines/build_and_install_module.sh + sudo apt-get update sudo apt-get install -y libhiredis0.14 libyang0.16 sudo dpkg -i --force-confask,confnew $(Build.ArtifactStagingDirectory)/download/libswsscommon_1.0.0_amd64.deb || apt-get install -f sudo dpkg -i $(Build.ArtifactStagingDirectory)/download/python3-swsscommon_1.0.0_amd64.deb @@ -82,6 +84,8 @@ jobs: fi rm -rf $(Build.ArtifactStagingDirectory)/download displayName: "Run vs tests" + ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: + continueOnError: true - task: PublishTestResults@2 inputs: