Skip to content

Commit d060e79

Browse files
Revert "[ci] Set default ACR in UpgrateVersion/PR/official pipeline. (#10341)"
This reverts commit f4bbcd1.
1 parent b769ac1 commit d060e79

6 files changed

+4
-39
lines changed

.azure-pipelines/azure-pipelines-UpgrateVersion.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ parameters:
4242
stages:
4343
- stage: Build
4444
variables:
45-
- name: CACHE_MODE
46-
value: none
47-
- name: VERSION_CONTROL_OPTIONS
48-
value: 'SONIC_VERSION_CONTROL_COMPONENTS='
49-
- template: .azure-pipelines/template-variables.yml@buildimage
45+
CACHE_MODE: none
46+
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS='
5047
jobs:
5148
- template: azure-pipelines-build.yml
5249
parameters:

.azure-pipelines/docker-sonic-slave-template.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ jobs:
4545
pool: ${{ parameters.pool }}
4646
steps:
4747
- template: cleanup.yml
48-
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
49-
- template: template-clean-sonic-slave.yml
50-
- ${{ else }}:
51-
- template: .azure-pipelines/template-variables.yml@buildimage
48+
- template: .azure-pipelines/template-clean-sonic-slave.yml@buildimage
5249
- checkout: self
5350
clean: true
5451
submodules: recursive

.azure-pipelines/official-build.yml

-11
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,9 @@ schedules:
1212
- 202012
1313
always: true
1414

15-
resources:
16-
repositories:
17-
- repository: buildimage
18-
type: github
19-
name: Azure/sonic-buildimage
20-
ref: master
21-
endpoint: build
22-
2315
trigger: none
2416
pr: none
2517

26-
variables:
27-
- template: .azure-pipelines/template-variables.yml@buildimage
28-
2918
stages:
3019
- stage: Build
3120
pool: sonicbld
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
steps:
22
- script: |
3-
set -x
4-
containers=$(docker container ls -aq)
3+
containers=$(docker container ls -a | grep "sonic-slave" | awk '{ print $1 }')
54
[ -n "$containers" ] && docker container rm -f $containers
65
docker images | grep "^<none>" | awk '{print$3}' | xargs -i docker rmi {}
76
images=$(docker images 'sonic-slave-*' -a -q)
87
[ -n "$images" ] && docker rmi -f $images
9-
exit 0
108
displayName: 'Cleanup sonic slave'

.azure-pipelines/template-variables.yml

-2
This file was deleted.

azure-pipelines.yml

-14
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,6 @@ resources:
2929
type: github
3030
name: Azure/sonic-mgmt
3131
endpoint: build
32-
- repository: buildimage
33-
type: github
34-
name: Azure/sonic-buildimage
35-
endpoint: build
36-
ref: master
37-
38-
variables:
39-
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml
40-
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
41-
- template: .azure-pipelines/template-variables.yml
42-
- ${{ else }}:
43-
- template: .azure-pipelines/template-variables.yml@buildimage
44-
- name: CACHE_MODE
45-
value: rcache
4632

4733
stages:
4834
- stage: BuildVS

0 commit comments

Comments
 (0)