This reverts commit f4bbcd1cf1
. The original one was missing one file ".azure-pipelines/azure-pipelines-repd-build-variables.yml" and break the Azure pipeline.
This commit is contained in:
parent
fc727f0538
commit
3fa538e58c
@ -42,11 +42,8 @@ parameters:
|
|||||||
stages:
|
stages:
|
||||||
- stage: Build
|
- stage: Build
|
||||||
variables:
|
variables:
|
||||||
- name: CACHE_MODE
|
CACHE_MODE: none
|
||||||
value: none
|
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS='
|
||||||
- name: VERSION_CONTROL_OPTIONS
|
|
||||||
value: 'SONIC_VERSION_CONTROL_COMPONENTS='
|
|
||||||
- template: .azure-pipelines/template-variables.yml@buildimage
|
|
||||||
jobs:
|
jobs:
|
||||||
- template: azure-pipelines-build.yml
|
- template: azure-pipelines-build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -45,10 +45,7 @@ jobs:
|
|||||||
pool: ${{ parameters.pool }}
|
pool: ${{ parameters.pool }}
|
||||||
steps:
|
steps:
|
||||||
- template: cleanup.yml
|
- template: cleanup.yml
|
||||||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
- template: .azure-pipelines/template-clean-sonic-slave.yml@buildimage
|
||||||
- template: template-clean-sonic-slave.yml
|
|
||||||
- ${{ else }}:
|
|
||||||
- template: .azure-pipelines/template-variables.yml@buildimage
|
|
||||||
- checkout: self
|
- checkout: self
|
||||||
clean: true
|
clean: true
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
@ -12,20 +12,9 @@ schedules:
|
|||||||
- 202012
|
- 202012
|
||||||
always: true
|
always: true
|
||||||
|
|
||||||
resources:
|
|
||||||
repositories:
|
|
||||||
- repository: buildimage
|
|
||||||
type: github
|
|
||||||
name: Azure/sonic-buildimage
|
|
||||||
ref: master
|
|
||||||
endpoint: build
|
|
||||||
|
|
||||||
trigger: none
|
trigger: none
|
||||||
pr: none
|
pr: none
|
||||||
|
|
||||||
variables:
|
|
||||||
- template: .azure-pipelines/template-variables.yml@buildimage
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Build
|
- stage: Build
|
||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
set -x
|
containers=$(docker container ls -a | grep "sonic-slave" | awk '{ print $1 }')
|
||||||
containers=$(docker container ls -aq)
|
|
||||||
[ -n "$containers" ] && docker container rm -f $containers
|
[ -n "$containers" ] && docker container rm -f $containers
|
||||||
docker images | grep "^<none>" | awk '{print$3}' | xargs -i docker rmi {}
|
docker images | grep "^<none>" | awk '{print$3}' | xargs -i docker rmi {}
|
||||||
images=$(docker images 'sonic-slave-*' -a -q)
|
images=$(docker images 'sonic-slave-*' -a -q)
|
||||||
[ -n "$images" ] && docker rmi -f $images
|
[ -n "$images" ] && docker rmi -f $images
|
||||||
exit 0
|
|
||||||
displayName: 'Cleanup sonic slave'
|
displayName: 'Cleanup sonic slave'
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
variables:
|
|
||||||
DEFAULT_CONTAINER_REGISTRY: 'publicmirror.azurecr.io'
|
|
@ -29,20 +29,6 @@ resources:
|
|||||||
type: github
|
type: github
|
||||||
name: Azure/sonic-mgmt
|
name: Azure/sonic-mgmt
|
||||||
endpoint: build
|
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:
|
stages:
|
||||||
- stage: BuildVS
|
- stage: BuildVS
|
||||||
|
Reference in New Issue
Block a user