From 9e6492127957d8d9f1e91e0dbaa4da914742f847 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Mon, 18 Mar 2024 12:49:46 -0500 Subject: [PATCH] Convert the update-readmes pipeline to use 1ES templates (#5277) --- eng/pipelines/update-readmes.yml | 49 +++++++++++++++++++++++--------- eng/pipelines/variables/core.yml | 2 +- 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/eng/pipelines/update-readmes.yml b/eng/pipelines/update-readmes.yml index 8f6cddd7f..9adb58c1a 100644 --- a/eng/pipelines/update-readmes.yml +++ b/eng/pipelines/update-readmes.yml @@ -1,17 +1,38 @@ trigger: none pr: none variables: -- template: variables/core.yml -jobs: -- job: UpdateReadmes - pool: - vmImage: $(defaultLinuxAmd64PoolImage) - 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 - 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/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: + 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: /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: /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 diff --git a/eng/pipelines/variables/core.yml b/eng/pipelines/variables/core.yml index 370e8a1cd..0b9115a99 100644 --- a/eng/pipelines/variables/core.yml +++ b/eng/pipelines/variables/core.yml @@ -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