From e1172f1582f1679d3a3f92f99d701bc9230efe81 Mon Sep 17 00:00:00 2001 From: ZelinWang Date: Wed, 25 May 2022 13:08:09 +0800 Subject: [PATCH 1/2] test migrate azure-pipelines.yml --- azure-pipelines.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 12216a7891c..58dfb504a41 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,7 +16,8 @@ jobs: - job: CredScan displayName: "Credential Scan" pool: - vmImage: "windows-2019" + name: 'azure-cli-pool-windows-2019' + vmImage: 'windows-2019' steps: - task: ms-codeanalysis.vss-microsoft-security-code-analysis-devops.build-task-credscan.CredScan@2 displayName: 'Run Credential Scanner' @@ -37,6 +38,7 @@ jobs: - job: CheckLicenseHeader displayName: "Check License" pool: + name: 'azure-cli-pool-ubuntu-2004' vmImage: 'ubuntu-20.04' steps: - task: UsePythonVersion@0 @@ -68,6 +70,7 @@ jobs: - job: StaticAnalysis displayName: "Static Analysis" pool: + name: 'azure-cli-pool-ubuntu-2004' vmImage: 'ubuntu-20.04' steps: - task: UsePythonVersion@0 @@ -82,6 +85,7 @@ jobs: - job: IndexVerify displayName: "Verify Extensions Index" pool: + name: 'azure-cli-pool-ubuntu-2004' vmImage: 'ubuntu-20.04' steps: - task: UsePythonVersion@0 @@ -99,6 +103,7 @@ jobs: - job: SourceTests displayName: "Integration Tests, Build Tests" pool: + name: 'azure-cli-pool-ubuntu-2004' vmImage: 'ubuntu-20.04' strategy: matrix: @@ -127,6 +132,7 @@ jobs: displayName: "CLI Linter on Modified Extensions" condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) pool: + name: 'azure-cli-pool-ubuntu-2004' vmImage: 'ubuntu-20.04' steps: - task: UsePythonVersion@0 @@ -163,6 +169,7 @@ jobs: - job: IndexRefDocVerify displayName: "Verify Ref Docs" pool: + name: 'azure-cli-pool-ubuntu-2004' vmImage: 'ubuntu-20.04' steps: - task: UsePythonVersion@0 From c11cac2d34865727daba6ff863ef566a5cb2588d Mon Sep 17 00:00:00 2001 From: ZelinWang Date: Thu, 18 Aug 2022 11:21:49 +0800 Subject: [PATCH 2/2] Update azure-pipelines.yml --- azure-pipelines.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 58dfb504a41..41ec535b5da 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,8 +16,7 @@ jobs: - job: CredScan displayName: "Credential Scan" pool: - name: 'azure-cli-pool-windows-2019' - vmImage: 'windows-2019' + name: 'pool-windows-2019' steps: - task: ms-codeanalysis.vss-microsoft-security-code-analysis-devops.build-task-credscan.CredScan@2 displayName: 'Run Credential Scanner' @@ -38,8 +37,7 @@ jobs: - job: CheckLicenseHeader displayName: "Check License" pool: - name: 'azure-cli-pool-ubuntu-2004' - vmImage: 'ubuntu-20.04' + name: 'pool-ubuntu-2004' steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.10' @@ -70,8 +68,7 @@ jobs: - job: StaticAnalysis displayName: "Static Analysis" pool: - name: 'azure-cli-pool-ubuntu-2004' - vmImage: 'ubuntu-20.04' + name: 'pool-ubuntu-2004' steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.6' @@ -85,8 +82,7 @@ jobs: - job: IndexVerify displayName: "Verify Extensions Index" pool: - name: 'azure-cli-pool-ubuntu-2004' - vmImage: 'ubuntu-20.04' + name: 'pool-ubuntu-2004' steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.10' @@ -103,8 +99,7 @@ jobs: - job: SourceTests displayName: "Integration Tests, Build Tests" pool: - name: 'azure-cli-pool-ubuntu-2004' - vmImage: 'ubuntu-20.04' + name: 'pool-ubuntu-2004' strategy: matrix: Python36: @@ -132,8 +127,7 @@ jobs: displayName: "CLI Linter on Modified Extensions" condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) pool: - name: 'azure-cli-pool-ubuntu-2004' - vmImage: 'ubuntu-20.04' + name: 'pool-ubuntu-2004' steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.10' @@ -169,8 +163,7 @@ jobs: - job: IndexRefDocVerify displayName: "Verify Ref Docs" pool: - name: 'azure-cli-pool-ubuntu-2004' - vmImage: 'ubuntu-20.04' + name: 'pool-ubuntu-2004' steps: - task: UsePythonVersion@0 displayName: 'Use Python 3.10'