Convert the update-readmes pipeline to use 1ES templates (#5277)

This commit is contained in:
Michael Simons 2024-03-18 12:49:46 -05:00 коммит произвёл Logan Bussell false
Родитель c7860c4a9a
Коммит 9e64921279
2 изменённых файлов: 36 добавлений и 15 удалений

Просмотреть файл

@ -1,17 +1,38 @@
trigger: none
pr: none
variables:
- template: variables/core.yml
jobs:
- job: UpdateReadmes
- template: /eng/pipelines/variables/core.yml@self
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
vmImage: $(defaultLinuxAmd64PoolImage)
name: NetCore1ESPool-Internal
image: 1es-windows-2022
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: UpdateReadmes
displayName: Update Readmes
jobs:
- job: UpdateReadmes
displayName: Update Readmes
pool:
name: NetCore1ESPool-Internal
image: 1es-ubuntu-2204
os: linux
steps:
- template: ../common/templates/steps/init-docker-linux.yml
- template: steps/set-public-source-branch-var.yml
- template: ../common/templates/steps/set-image-info-path-var.yml
- template: /eng/common/templates/steps/init-docker-linux.yml@self
- template: /eng/pipelines/steps/set-public-source-branch-var.yml@self
- template: /eng/common/templates/steps/set-image-info-path-var.yml@self
parameters:
publicSourceBranch: $(publicSourceBranch)
- template: steps/set-publish-mcrdocs-args-var.yml
- template: ../common/templates/steps/publish-readmes.yml
- template: ../common/templates/steps/cleanup-docker-linux.yml
- template: /eng/pipelines/steps/set-publish-mcrdocs-args-var.yml@self
- template: /eng/common/templates/steps/publish-readmes.yml@self
- template: /eng/common/templates/steps/cleanup-docker-linux.yml@self

Просмотреть файл

@ -1,5 +1,5 @@
variables:
- template: ../../common/templates/variables/dotnet/build-test-publish.yml
- template: /eng/common/templates/variables/dotnet/build-test-publish.yml@self
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
- group: AzureDevOps-Artifact-Feeds-Pats