Skip to content

Commit

Permalink
Revert "[ci] Set default ACR in UpgrateVersion/PR/official pipeline. (s…
Browse files Browse the repository at this point in the history
…onic-net#10341)"

This reverts commit f4bbcd1.
  • Loading branch information
qiluo-msft committed Apr 11, 2022
1 parent 589234a commit 397adfd
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 39 deletions.
7 changes: 2 additions & 5 deletions .azure-pipelines/azure-pipelines-UpgrateVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ parameters:
stages:
- stage: Build
variables:
- name: CACHE_MODE
value: none
- name: VERSION_CONTROL_OPTIONS
value: 'SONIC_VERSION_CONTROL_COMPONENTS='
- template: .azure-pipelines/template-variables.yml@buildimage
CACHE_MODE: none
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS='
jobs:
- template: azure-pipelines-build.yml
parameters:
Expand Down
5 changes: 1 addition & 4 deletions .azure-pipelines/docker-sonic-slave-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ jobs:
pool: ${{ parameters.pool }}
steps:
- template: cleanup.yml
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: template-clean-sonic-slave.yml
- ${{ else }}:
- template: .azure-pipelines/template-variables.yml@buildimage
- template: .azure-pipelines/template-clean-sonic-slave.yml@buildimage
- checkout: self
clean: true
submodules: recursive
Expand Down
11 changes: 0 additions & 11 deletions .azure-pipelines/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,9 @@ schedules:
- 202012
always: true

resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
ref: master
endpoint: build

trigger: none
pr: none

variables:
- template: .azure-pipelines/template-variables.yml@buildimage

stages:
- stage: Build
pool: sonicbld
Expand Down
4 changes: 1 addition & 3 deletions .azure-pipelines/template-clean-sonic-slave.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
steps:
- script: |
set -x
containers=$(docker container ls -aq)
containers=$(docker container ls -a | grep "sonic-slave" | awk '{ print $1 }')
[ -n "$containers" ] && docker container rm -f $containers
docker images | grep "^<none>" | awk '{print$3}' | xargs -i docker rmi {}
images=$(docker images 'sonic-slave-*' -a -q)
[ -n "$images" ] && docker rmi -f $images
exit 0
displayName: 'Cleanup sonic slave'
2 changes: 0 additions & 2 deletions .azure-pipelines/template-variables.yml

This file was deleted.

14 changes: 0 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,6 @@ resources:
type: github
name: Azure/sonic-mgmt
endpoint: build
- repository: buildimage
type: github
name: Azure/sonic-buildimage
endpoint: build
ref: master

variables:
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: .azure-pipelines/template-variables.yml
- ${{ else }}:
- template: .azure-pipelines/template-variables.yml@buildimage
- name: CACHE_MODE
value: rcache

stages:
- stage: BuildVS
Expand Down

0 comments on commit 397adfd

Please sign in to comment.