diff --git a/.azure-pipelines/sync-alias.yml b/.azure-pipelines/sync-alias.yml index 3720577c8e0..12e5f13e69f 100644 --- a/.azure-pipelines/sync-alias.yml +++ b/.azure-pipelines/sync-alias.yml @@ -14,10 +14,14 @@ resources: type: git name: internal.wiki +variables: +- template: ${{ variables.Pipeline.Workspace }}/.azure-pipelines/templates/variables.yml + jobs: - job: UpdateYaml displayName: Update resourceManagement.yml - pool: pool-windows-2019 + pool: + name: ${{ variables.windows_pool }} uses: repositories: - ServiceContactList diff --git a/.azure-pipelines/templates/variables.yml b/.azure-pipelines/templates/variables.yml index f53f0c89e30..b566ca86334 100644 --- a/.azure-pipelines/templates/variables.yml +++ b/.azure-pipelines/templates/variables.yml @@ -1,4 +1,4 @@ variables: - ubuntu_pool: 'pool-ubuntu-2004' + ubuntu_pool: 'pool-ubuntu-2204' windows_pool: 'pool-windows-2019' - ubuntu_arm64_pool: 'ubuntu-arm64-2004-pool' + ubuntu_arm64_pool: 'pool-ubuntu-latest-arm64' diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 85705bed0fd..20fb5bb194f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,11 +12,14 @@ pr: include: - '*' +variables: +- template: ${{ variables.Pipeline.Workspace }}/.azure-pipelines/templates/variables.yml + jobs: - job: CredScan displayName: "Credential Scan" pool: - name: 'pool-windows-2019' + name: ${{ variables.windows_pool }} steps: - task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3 displayName: 'Run Credential Scanner' @@ -34,7 +37,7 @@ jobs: - job: PolicyCheck displayName: "Policy Check" pool: - name: 'pool-windows-2019' + name: ${{ variables.windows_pool }} steps: - task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@2 displayName: 'Run Policy Check' @@ -51,7 +54,7 @@ jobs: - job: CheckLicenseHeader displayName: "Check License" pool: - name: 'pool-ubuntu-2004' + name: ${{ variables.ubuntu_pool }} steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.12' @@ -67,7 +70,7 @@ jobs: - job: IndexVerify displayName: "Verify Extensions Index" pool: - name: 'pool-ubuntu-2004' + name: ${{ variables.ubuntu_pool }} steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.12' @@ -84,7 +87,7 @@ jobs: - job: SourceTests displayName: "Integration Tests, Build Tests" pool: - name: 'pool-ubuntu-2004' + name: ${{ variables.ubuntu_pool }} strategy: matrix: Python39: @@ -119,7 +122,7 @@ jobs: condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) continueOnError: true pool: - name: 'pool-ubuntu-2004' + name: ${{ variables.ubuntu_pool }} steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.12' @@ -143,7 +146,7 @@ jobs: displayName: "azdev linter on Modified Extensions" condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) pool: - name: 'pool-ubuntu-2004' + name: ${{ variables.ubuntu_pool }} steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.12' @@ -168,7 +171,7 @@ jobs: displayName: "azdev scan ( High Confidence ) on Modified Extensions" condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) pool: - name: 'pool-ubuntu-2004' + name: ${{ variables.ubuntu_pool }} steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.11' @@ -199,7 +202,7 @@ jobs: condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) continueOnError: true pool: - name: 'pool-ubuntu-2004' + name: ${{ variables.ubuntu_pool }} steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.11' @@ -228,7 +231,7 @@ jobs: # displayName: "Verify Ref Docs" # continueOnError: true # pool: -# name: 'pool-ubuntu-2004' +# name: ${{ variables.ubuntu_pool }} # steps: # - task: UsePythonVersion@0 # displayName: 'Use Python 3.12' @@ -245,7 +248,7 @@ jobs: - job: CheckInit displayName: "Check Init Files" pool: - name: 'pool-ubuntu-2004' + name: ${{ variables.ubuntu_pool }} steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.x'