[ci] Use template from master branch in UpgrateVersion/sonic-slave pipeline (#10380)

This commit is contained in:
Shilong Liu 2022-03-31 12:40:19 +08:00 committed by GitHub
parent 47f4a9d905
commit d8b80d2317
No account linked to committer's email address
2 changed files with 17 additions and 2 deletions

View File

@ -18,6 +18,14 @@ schedules:
- 202006 - 202006
always: true always: true
resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
ref: master
endpoint: build
pool: sonicbld pool: sonicbld
parameters: parameters:
@ -45,7 +53,7 @@ stages:
jobFilters: ${{ parameters.jobFilters }} jobFilters: ${{ parameters.jobFilters }}
buildOptions: '${{ variables.VERSION_CONTROL_OPTIONS }} SONIC_BUILD_JOBS=$(nproc) ENABLE_IMAGE_SIGNATURE=y' buildOptions: '${{ variables.VERSION_CONTROL_OPTIONS }} SONIC_BUILD_JOBS=$(nproc) ENABLE_IMAGE_SIGNATURE=y'
preSteps: preSteps:
- template: template-clean-sonic-slave.yml - template: .azure-pipelines/template-clean-sonic-slave.yml@buildimage
- stage: UpgradeVersions - stage: UpgradeVersions
jobs: jobs:
- job: UpgradeVersions - job: UpgradeVersions

View File

@ -3,6 +3,13 @@
# Add steps that build, run tests, deploy, and more: # Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml # https://aka.ms/yaml
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64 # Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
ref: master
endpoint: build
parameters: parameters:
- name: arch - name: arch
@ -38,7 +45,7 @@ jobs:
pool: ${{ parameters.pool }} pool: ${{ parameters.pool }}
steps: steps:
- template: cleanup.yml - template: cleanup.yml
- template: template-clean-sonic-slave.yml - template: .azure-pipelines/template-clean-sonic-slave.yml@buildimage
- checkout: self - checkout: self
clean: true clean: true
submodules: recursive submodules: recursive