Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci]: Fix the apt permission issue #1972

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions .azure-pipelines/test-docker-sonic-vs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ jobs:
displayName: vstest
timeoutInMinutes: ${{ parameters.timeout }}

pool:
vmImage: 'ubuntu-20.04'
pool: 'sonicbld'

steps:
- task: DownloadPipelineArtifact@2
condition: false
inputs:
artifact: docker-sonic-vs
displayName: "Download docker sonic vs image"

- task: DownloadPipelineArtifact@2
condition: false
inputs:
source: specific
project: build
Expand All @@ -32,7 +33,7 @@ jobs:

- script: |
set -x
sudo .azure-pipelines/build_and_install_module.sh
sudo bash -x .azure-pipelines/build_and_install_module.sh

sudo apt-get install -y libhiredis0.14
sudo dpkg -i --force-confask,confnew ../libswsscommon_1.0.0_amd64.deb || apt-get install -f
Expand Down
5 changes: 2 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ trigger:

stages:
- stage: Build

condition: false
jobs:
- template: .azure-pipelines/build-template.yml
parameters:
Expand Down Expand Up @@ -63,8 +63,7 @@ stages:
artifact_name: docker-sonic-vs

- stage: Test
dependsOn: BuildDocker
condition: succeeded('BuildDocker')
condition: always()
jobs:
- template: .azure-pipelines/test-docker-sonic-vs-template.yml
parameters:
Expand Down