From a448dcc6871a0cce344ffcaf7da964ed33af3291 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu <31145988+chidozieononiwu@users.noreply.github.com> Date: Wed, 17 Jun 2020 10:56:22 -0700 Subject: [PATCH] Reference tools repo version (#12627) * Start switching to refs * Update repository resource to point to ref * Using extends keyword to extend ci.yml. --- eng/pipelines/docindex.yml | 11 +---- eng/pipelines/mgmt.yml | 7 +-- .../templates/jobs/archetype-sdk-client.yml | 2 +- .../templates/jobs/archetype-sdk-mgmt.yml | 2 +- .../templates/jobs/archetype-sdk-tests.yml | 43 +++++++++++++++---- .../templates/stages/archetype-sdk-client.yml | 34 +++++++++++++-- .../templates/steps/archetype-sdk-docs.yml | 2 +- .../content/ci.yml | 10 ----- sdk/appconfiguration/ci.yml | 16 ++----- sdk/appconfiguration/tests.yml | 11 +---- sdk/applicationinsights/ci.yml | 18 ++------ sdk/attestation/ci.yml | 17 ++------ sdk/batch/ci.yml | 16 ++----- sdk/cognitiveservices/ci.yml | 16 ++----- sdk/compute/ci.yml | 16 ++----- sdk/containerregistry/ci.yml | 16 ++----- sdk/core/ci.yml | 16 ++----- sdk/core/tests.yml | 15 ++----- sdk/digitaltwins/ci.yml | 16 ++----- sdk/digitaltwins/tests.yml | 13 ++---- sdk/eventgrid/ci.yml | 16 ++----- sdk/eventhub/ci.yml | 16 ++----- sdk/eventhub/tests.yml | 11 +---- sdk/extensions/ci.yml | 16 ++----- sdk/extensions/tests.yml | 13 ++---- sdk/formrecognizer/ci.yml | 14 +----- sdk/formrecognizer/tests.yml | 11 +---- sdk/graphrbac/ci.yml | 14 +----- sdk/hdinsight/ci.yml | 16 ++----- sdk/identity/ci.yml | 16 ++----- sdk/identity/tests.yml | 11 +---- sdk/keyvault/ci.yml | 16 ++----- sdk/keyvault/tests.yml | 14 ++---- sdk/network/ci.yml | 16 ++----- sdk/operationalinsights/ci.yml | 16 ++----- sdk/resources/ci.yml | 16 ++----- sdk/search/ci.yml | 14 +----- sdk/search/tests.yml | 11 +---- sdk/servicebus/ci.yml | 16 ++----- sdk/servicebus/tests.yml | 11 +---- sdk/storage/ci.yml | 16 ++----- sdk/storage/tests.yml | 19 +++----- sdk/synapse/ci.yml | 14 +----- sdk/tables/ci.yml | 14 +----- sdk/tables/tests.yml | 11 +---- sdk/template/ci.yml | 17 ++------ sdk/textanalytics/ci.yml | 16 ++----- sdk/textanalytics/tests.yml | 11 +---- 48 files changed, 182 insertions(+), 517 deletions(-) diff --git a/eng/pipelines/docindex.yml b/eng/pipelines/docindex.yml index 70250ba043091..496c0635bdebb 100644 --- a/eng/pipelines/docindex.yml +++ b/eng/pipelines/docindex.yml @@ -1,10 +1,3 @@ -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: azure/azure-sdk-tools - endpoint: azure - jobs: - job: GenerateDocIndex variables: @@ -16,7 +9,7 @@ jobs: displayName: 'Use Python 3.6' inputs: versionSpec: '3.6' - - template: eng/pipelines/templates/scripts/replace-relative-links.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/replace-relative-links.yml parameters: TargetFolder: '.' RootFolder: '.' @@ -34,7 +27,7 @@ jobs: displayName: 'Use Python 3.6' inputs: versionSpec: '3.6' - - template: eng/pipelines/templates/scripts/mashup-doc-index.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/mashup-doc-index.yml parameters: SourceDirectory: $(Build.SourcesDirectory) - task: CopyFiles@2 diff --git a/eng/pipelines/mgmt.yml b/eng/pipelines/mgmt.yml index 6b9c9c9d654aa..55df2fbcc732e 100644 --- a/eng/pipelines/mgmt.yml +++ b/eng/pipelines/mgmt.yml @@ -138,12 +138,7 @@ pr: - sdk/websites/Microsoft.Azure.Management.WebSites - eng/pipelines/mgmt.yml - eng/pipelines/templates/jobs/archetype-sdk-mgmt.yml -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure + variables: DotNetCoreSDKVersion: '2.2.202' skipComponentGovernanceDetection: true diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index 97d019b28c6fc..a7edc214bc022 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -77,7 +77,7 @@ jobs: artifact: packages path: $(Pipeline.Workspace)/packages patterns: "*.nupkg" - - template: eng/pipelines/templates/scripts/verify-path-length.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/verify-path-length.yml parameters: SourceDirectory: $(Build.SourcesDirectory) - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 diff --git a/eng/pipelines/templates/jobs/archetype-sdk-mgmt.yml b/eng/pipelines/templates/jobs/archetype-sdk-mgmt.yml index 4f42ed5152495..1daf3d941056c 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-mgmt.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-mgmt.yml @@ -84,7 +84,7 @@ jobs: displayName: "Use Python 3.6" inputs: versionSpec: "3.6" - - template: eng/pipelines/templates/scripts/verify-path-length.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/verify-path-length.yml parameters: SourceDirectory: $(Build.SourcesDirectory) - task: PowerShell@2 diff --git a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml index f3dc3bd0c963a..0c766fe7765f9 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml @@ -1,12 +1,39 @@ +resources: + repositories: + - repository: azure-sdk-tools + type: github + name: azure/azure-sdk-tools + endpoint: azure + ref: refs/tags/azure-sdk-tools_20200608.1 + parameters: - PreSteps: [] - PostSteps: [] - EnvVars: {} - MaxParallel: 0 - BuildInParallel: true - TimeoutInMinutes: 60 - Location: '' - SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) +- name: PreSteps + type: object + default: [] +- name: PostSteps + type: object + default: [] +- name: EnvVars + type: object + default: {} +- name: MaxParallel + type: number + default: 0 +- name: BuildInParallel + type: boolean + default: true +- name: TimeoutInMinutes + type: number + default: 60 +- name: Location + type: string + default: '' +- name: SubscriptionConfiguration + type: string + default: $(sub-config-azure-cloud-test-resources) +- name: ServiceDirectory + type: string + default: not-specified jobs: - job: "Test" diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index 26739e110158c..81653cd512bec 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -1,8 +1,34 @@ +resources: + repositories: + - repository: azure-sdk-tools + type: github + name: azure/azure-sdk-tools + endpoint: azure + ref: refs/tags/azure-sdk-tools_20200608.1 + - repository: azure-sdk-build-tools + type: git + name: internal/azure-sdk-build-tools + ref: refs/tags/azure-sdk-build-tools_20200514.1 + parameters: - Artifacts: [] - ServiceDirectory: not-specified - TargetDocRepoOwner: 'Azure' - TargetDocRepoName: 'azure-docs-sdk-dotnet' +- name: Artifacts + type: object + default: [] +- name: ArtifactName + type: string + default: packages +- name: ServiceDirectory + type: string + default: not-specified +- name: ServiceToBuild + type: string + default: '' +- name: TargetDocRepoOwner + type: string + default: Azure +- name: TargetDocRepoName + type: string + default: azure-docs-sdk-dotnet stages: - stage: Build diff --git a/eng/pipelines/templates/steps/archetype-sdk-docs.yml b/eng/pipelines/templates/steps/archetype-sdk-docs.yml index 01c55f86ac7c9..8d9ce793d3b30 100644 --- a/eng/pipelines/templates/steps/archetype-sdk-docs.yml +++ b/eng/pipelines/templates/steps/archetype-sdk-docs.yml @@ -7,7 +7,7 @@ steps: displayName: 'Use Python 3.6' inputs: versionSpec: '3.6' - - template: eng/pipelines/templates/scripts/replace-relative-links.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/replace-relative-links.yml parameters: TargetFolder: '.' RootFolder: '.' diff --git a/eng/templates/Azure.ResourceManager.Template/content/ci.yml b/eng/templates/Azure.ResourceManager.Template/content/ci.yml index 81bbf203183a3..60fad92882259 100644 --- a/eng/templates/Azure.ResourceManager.Template/content/ci.yml +++ b/eng/templates/Azure.ResourceManager.Template/content/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: diff --git a/sdk/appconfiguration/ci.yml b/sdk/appconfiguration/ci.yml index cbe31497d3870..9f749f4383e36 100644 --- a/sdk/appconfiguration/ci.yml +++ b/sdk/appconfiguration/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/appconfiguration/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: appconfiguration ArtifactName: packages @@ -41,4 +31,4 @@ stages: - name: Azure.Data.AppConfiguration safeName: AzureDataAppConfiguration - name: Azure.ResourceManager.AppConfiguration - safeName: AzureResourceManagerAppConfiguration + safeName: AzureResourceManagerAppConfiguration \ No newline at end of file diff --git a/sdk/appconfiguration/tests.yml b/sdk/appconfiguration/tests.yml index c6a9e9d9c52ef..4944bde6d7887 100644 --- a/sdk/appconfiguration/tests.yml +++ b/sdk/appconfiguration/tests.yml @@ -1,13 +1,6 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: ServiceDirectory: appconfiguration \ No newline at end of file diff --git a/sdk/applicationinsights/ci.yml b/sdk/applicationinsights/ci.yml index bf31d11d38e80..54ae8d6825e3b 100644 --- a/sdk/applicationinsights/ci.yml +++ b/sdk/applicationinsights/ci.yml @@ -1,16 +1,5 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. - -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,12 +21,11 @@ pr: include: - sdk/applicationinsights/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: applicationinsights ArtifactName: packages Artifacts: - name: Microsoft.Azure.ApplicationInsights.Query - safeName: MicrosoftAzureApplicationInsightsQuery - + safeName: MicrosoftAzureApplicationInsightsQuery \ No newline at end of file diff --git a/sdk/attestation/ci.yml b/sdk/attestation/ci.yml index 5f6ec042d62a7..e4b60e25eddba 100644 --- a/sdk/attestation/ci.yml +++ b/sdk/attestation/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,12 +22,11 @@ pr: include: - sdk/attestation/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: attestation ArtifactName: packages Artifacts: - name: Microsoft.Azure.Attestation - safeName: MicrosoftAzureAttestation - + safeName: MicrosoftAzureAttestation \ No newline at end of file diff --git a/sdk/batch/ci.yml b/sdk/batch/ci.yml index e4878c80255d4..74cbf93f1e6ef 100644 --- a/sdk/batch/ci.yml +++ b/sdk/batch/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/batch/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: batch ArtifactName: packages @@ -43,4 +33,4 @@ stages: - name: Microsoft.Azure.Batch.FileStaging safeName: MicrosoftAzureBatchFileStaging - name: Microsoft.Azure.Batch.Conventions.Files - safeName: MicrosoftAzureBatchConventionsFiles + safeName: MicrosoftAzureBatchConventionsFiles \ No newline at end of file diff --git a/sdk/cognitiveservices/ci.yml b/sdk/cognitiveservices/ci.yml index 35f6f260fc5d1..688b864ad3469 100644 --- a/sdk/cognitiveservices/ci.yml +++ b/sdk/cognitiveservices/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/cognitiveservices/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: cognitiveservices ArtifactName: packages @@ -103,4 +93,4 @@ stages: directoryName: Vision.CustomVision.Training - name: Microsoft.Azure.CognitiveServices.Vision.Face safeName: MicrosoftAzureCognitiveServicesVisionFace - directoryName: Vision.Face + directoryName: Vision.Face \ No newline at end of file diff --git a/sdk/compute/ci.yml b/sdk/compute/ci.yml index 2619da4c7c62d..c679de0bb32ec 100644 --- a/sdk/compute/ci.yml +++ b/sdk/compute/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/compute/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: compute ArtifactName: packages Artifacts: - name: Azure.ResourceManager.Compute - safeName: AzureResourceManagerCompute + safeName: AzureResourceManagerCompute \ No newline at end of file diff --git a/sdk/containerregistry/ci.yml b/sdk/containerregistry/ci.yml index af530b6dc27b0..0676f9c75f3c6 100644 --- a/sdk/containerregistry/ci.yml +++ b/sdk/containerregistry/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/containerregistry/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: containerregistry ArtifactName: packages Artifacts: - name: Microsoft.Azure.ContainerRegistry - safeName: MicrosoftAzureContainerRegistry + safeName: MicrosoftAzureContainerRegistry \ No newline at end of file diff --git a/sdk/core/ci.yml b/sdk/core/ci.yml index c1c7874fb0cf5..80274796f4946 100644 --- a/sdk/core/ci.yml +++ b/sdk/core/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -39,8 +29,8 @@ pr: exclude: - eng/mgmt/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: core ServiceToBuild: '*' @@ -51,4 +41,4 @@ stages: - name: Azure.Core.Experimental safeName: AzureCoreExperimental - name: Microsoft.Extensions.Azure - safeName: MicrosoftExtensionsAzure + safeName: MicrosoftExtensionsAzure \ No newline at end of file diff --git a/sdk/core/tests.yml b/sdk/core/tests.yml index b861985c46133..18a409be5c0d7 100644 --- a/sdk/core/tests.yml +++ b/sdk/core/tests.yml @@ -1,13 +1,6 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: - - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml - parameters: - ServiceDirectory: core +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml + parameters: + ServiceDirectory: core \ No newline at end of file diff --git a/sdk/digitaltwins/ci.yml b/sdk/digitaltwins/ci.yml index 3185604d9e334..1a7038ea86a2f 100644 --- a/sdk/digitaltwins/ci.yml +++ b/sdk/digitaltwins/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/digitaltwins/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: digitaltwins ArtifactName: packages Artifacts: - name: Azure.DigitalTwins.Core - safeName: AzureDigitalTwinsCore + safeName: AzureDigitalTwinsCore \ No newline at end of file diff --git a/sdk/digitaltwins/tests.yml b/sdk/digitaltwins/tests.yml index eac38fc1985e9..b07ab1f79b184 100644 --- a/sdk/digitaltwins/tests.yml +++ b/sdk/digitaltwins/tests.yml @@ -1,18 +1,11 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: ServiceDirectory: digitaltwins Location: westus2 SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview) EnvVars: # Runs live tests. - AZURE_IOT_TEST_MODE: Live + AZURE_IOT_TEST_MODE: Live \ No newline at end of file diff --git a/sdk/eventgrid/ci.yml b/sdk/eventgrid/ci.yml index 848a9da32b9a1..9ec040f5c9c53 100644 --- a/sdk/eventgrid/ci.yml +++ b/sdk/eventgrid/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/eventgrid/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: eventgrid ArtifactName: packages Artifacts: - name: Microsoft.Azure.EventGrid - safeName: MicrosoftAzureEventGrid + safeName: MicrosoftAzureEventGrid \ No newline at end of file diff --git a/sdk/eventhub/ci.yml b/sdk/eventhub/ci.yml index 530498f364079..9771eb5e521de 100644 --- a/sdk/eventhub/ci.yml +++ b/sdk/eventhub/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/eventhub/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: eventhub ArtifactName: packages @@ -49,4 +39,4 @@ stages: - name: Microsoft.Azure.EventHubs.ServiceFabricProcessor safeName: MicrosoftAzureEventHubsServiceFabricProcessor - name: Azure.ResourceManager.EventHubs - safeName: AzureResourceManagerEventHubs + safeName: AzureResourceManagerEventHubs \ No newline at end of file diff --git a/sdk/eventhub/tests.yml b/sdk/eventhub/tests.yml index 714dd8a862486..b2009cd2c5d78 100644 --- a/sdk/eventhub/tests.yml +++ b/sdk/eventhub/tests.yml @@ -1,14 +1,7 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: MaxParallel: 6 ServiceDirectory: eventhub diff --git a/sdk/extensions/ci.yml b/sdk/extensions/ci.yml index b4e00f9a6cd1f..20336be489cef 100644 --- a/sdk/extensions/ci.yml +++ b/sdk/extensions/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/extensions/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: extensions ArtifactName: packages @@ -43,4 +33,4 @@ stages: - name: Azure.Extensions.AspNetCore.DataProtection.Keys safeName: AzureExtensionsAspNetCoreDataProtectionKeys - name: Azure.Extensions.AspNetCore.Configuration.Secrets - safeName: AzureExtensionsAspNetCoreConfigurationSecrets + safeName: AzureExtensionsAspNetCoreConfigurationSecrets \ No newline at end of file diff --git a/sdk/extensions/tests.yml b/sdk/extensions/tests.yml index 103ab2afbd82d..0de69921c55a6 100644 --- a/sdk/extensions/tests.yml +++ b/sdk/extensions/tests.yml @@ -1,13 +1,6 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: - ServiceDirectory: extensions + ServiceDirectory: extensions \ No newline at end of file diff --git a/sdk/formrecognizer/ci.yml b/sdk/formrecognizer/ci.yml index eb4d4d1286f56..1040a27f0f4a1 100644 --- a/sdk/formrecognizer/ci.yml +++ b/sdk/formrecognizer/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/formrecognizer/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: formrecognizer ArtifactName: packages diff --git a/sdk/formrecognizer/tests.yml b/sdk/formrecognizer/tests.yml index 3980668b30843..8406ac8cea63a 100644 --- a/sdk/formrecognizer/tests.yml +++ b/sdk/formrecognizer/tests.yml @@ -1,13 +1,6 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: ServiceDirectory: formrecognizer \ No newline at end of file diff --git a/sdk/graphrbac/ci.yml b/sdk/graphrbac/ci.yml index 18069fd34c607..976338de08eac 100644 --- a/sdk/graphrbac/ci.yml +++ b/sdk/graphrbac/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/graphrbac/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: graphrbac ArtifactName: packages diff --git a/sdk/hdinsight/ci.yml b/sdk/hdinsight/ci.yml index e362d4f44c373..0d954da29c1b9 100644 --- a/sdk/hdinsight/ci.yml +++ b/sdk/hdinsight/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/hdinsight/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: hdinsight ArtifactName: packages Artifacts: - name: Microsoft.Azure.HDInsight.Job - safeName: MicrosoftAzureHDInsightJob + safeName: MicrosoftAzureHDInsightJob \ No newline at end of file diff --git a/sdk/identity/ci.yml b/sdk/identity/ci.yml index 74576fbce6566..2d2f8d3cbd4a0 100644 --- a/sdk/identity/ci.yml +++ b/sdk/identity/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/identity/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: identity ArtifactName: packages Artifacts: - name: Azure.Identity - safeName: AzureIdentity + safeName: AzureIdentity \ No newline at end of file diff --git a/sdk/identity/tests.yml b/sdk/identity/tests.yml index 045434c2942f3..4779c67861de5 100644 --- a/sdk/identity/tests.yml +++ b/sdk/identity/tests.yml @@ -1,14 +1,7 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: ServiceDirectory: identity EnvVars: diff --git a/sdk/keyvault/ci.yml b/sdk/keyvault/ci.yml index 56b463dbc87f2..2fe27f2cba598 100644 --- a/sdk/keyvault/ci.yml +++ b/sdk/keyvault/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/keyvault/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: keyvault ArtifactName: packages @@ -45,4 +35,4 @@ stages: - name: Azure.Security.KeyVault.Secrets safeName: AzureSecurityKeyVaultSecrets - name: Azure.ResourceManager.KeyVault - safeName: AzureResourceManagerKeyVault + safeName: AzureResourceManagerKeyVault \ No newline at end of file diff --git a/sdk/keyvault/tests.yml b/sdk/keyvault/tests.yml index 0331e600fb643..3a9a60d50bb4c 100644 --- a/sdk/keyvault/tests.yml +++ b/sdk/keyvault/tests.yml @@ -1,17 +1,9 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: ServiceDirectory: keyvault - TimeoutInMinutes: 120 EnvVars: # Runs samples with live tests. - AZURE_KEYVAULT_TEST_MODE: Live + AZURE_KEYVAULT_TEST_MODE: Live \ No newline at end of file diff --git a/sdk/network/ci.yml b/sdk/network/ci.yml index 8ef3d54b3dfeb..fbc3fecb3bec0 100644 --- a/sdk/network/ci.yml +++ b/sdk/network/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/network/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: network ArtifactName: packages Artifacts: - name: Azure.ResourceManager.Network - safeName: AzureResourceManagerNetwork + safeName: AzureResourceManagerNetwork \ No newline at end of file diff --git a/sdk/operationalinsights/ci.yml b/sdk/operationalinsights/ci.yml index b0e1d70584116..10934f1a1c034 100644 --- a/sdk/operationalinsights/ci.yml +++ b/sdk/operationalinsights/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/operationalinsights/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: operationalinsights ArtifactName: packages Artifacts: - name: Microsoft.Azure.OperationalInsights - safeName: MicrosoftAzureOperationalInsights + safeName: MicrosoftAzureOperationalInsights \ No newline at end of file diff --git a/sdk/resources/ci.yml b/sdk/resources/ci.yml index 9d862d18d17bb..1b5b69452e504 100644 --- a/sdk/resources/ci.yml +++ b/sdk/resources/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/resources/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: resources ArtifactName: packages Artifacts: - name: Azure.ResourceManager.Resources - safeName: AzureResourceManagerResources + safeName: AzureResourceManagerResources \ No newline at end of file diff --git a/sdk/search/ci.yml b/sdk/search/ci.yml index f63dbf3bf510e..ba50b56ae7beb 100644 --- a/sdk/search/ci.yml +++ b/sdk/search/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/search/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: search ArtifactName: packages diff --git a/sdk/search/tests.yml b/sdk/search/tests.yml index 9903256ec8a41..c23f9ef7cad09 100644 --- a/sdk/search/tests.yml +++ b/sdk/search/tests.yml @@ -1,14 +1,7 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: ServiceDirectory: search MaxParallel: 2 diff --git a/sdk/servicebus/ci.yml b/sdk/servicebus/ci.yml index f0d9979669e06..43058ce24e85d 100644 --- a/sdk/servicebus/ci.yml +++ b/sdk/servicebus/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/servicebus/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: servicebus ArtifactName: packages @@ -41,4 +31,4 @@ stages: - name: Azure.Messaging.ServiceBus safeName: AzureMessagingServiceBus - name: Microsoft.Azure.ServiceBus - safeName: MicrosoftAzureServiceBus + safeName: MicrosoftAzureServiceBus \ No newline at end of file diff --git a/sdk/servicebus/tests.yml b/sdk/servicebus/tests.yml index 2d7696a51c106..6aa9edd7f56e2 100644 --- a/sdk/servicebus/tests.yml +++ b/sdk/servicebus/tests.yml @@ -1,14 +1,7 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: MaxParallel: 4 ServiceDirectory: servicebus diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 4d295909c4845..8fa367e00ba2d 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/storage/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: storage ArtifactName: packages @@ -51,4 +41,4 @@ stages: - name: Azure.Storage.Queues safeName: AzureStorageQueues - name: Azure.ResourceManager.Storage - safeName: AzureResourceManagerStorage + safeName: AzureResourceManagerStorage \ No newline at end of file diff --git a/sdk/storage/tests.yml b/sdk/storage/tests.yml index 91a0a163cd8c3..1487b34b8ff31 100644 --- a/sdk/storage/tests.yml +++ b/sdk/storage/tests.yml @@ -1,15 +1,8 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: - - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml - parameters: - ServiceDirectory: storage - BuildInParallel: false - TimeoutInMinutes: 300 +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml + parameters: + ServiceDirectory: storage + BuildInParallel: false + TimeoutInMinutes: 300 \ No newline at end of file diff --git a/sdk/synapse/ci.yml b/sdk/synapse/ci.yml index 2230aea3ac950..b65deba6ee904 100644 --- a/sdk/synapse/ci.yml +++ b/sdk/synapse/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -33,8 +23,8 @@ pr: include: - sdk/synapse/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: synapse ArtifactName: packages diff --git a/sdk/tables/ci.yml b/sdk/tables/ci.yml index 4f3b5bb907bd8..adbff32540637 100644 --- a/sdk/tables/ci.yml +++ b/sdk/tables/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,8 +22,8 @@ pr: include: - sdk/tables/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: tables ArtifactName: packages diff --git a/sdk/tables/tests.yml b/sdk/tables/tests.yml index edcb2d52a9e72..8e6d443dcc1cf 100644 --- a/sdk/tables/tests.yml +++ b/sdk/tables/tests.yml @@ -1,13 +1,6 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: ServiceDirectory: tables \ No newline at end of file diff --git a/sdk/template/ci.yml b/sdk/template/ci.yml index d20c17455c5d4..d6e1f89cf0011 100644 --- a/sdk/template/ci.yml +++ b/sdk/template/ci.yml @@ -1,16 +1,5 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. - -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +21,11 @@ pr: include: - sdk/template/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: template ArtifactName: packages Artifacts: - name: Azure.Template - safeName: AzureTemplate + safeName: AzureTemplate \ No newline at end of file diff --git a/sdk/textanalytics/ci.yml b/sdk/textanalytics/ci.yml index 6e5afe70713dc..c77e29699c993 100644 --- a/sdk/textanalytics/ci.yml +++ b/sdk/textanalytics/ci.yml @@ -1,16 +1,6 @@ # DO NOT EDIT THIS FILE # This file is generated automatically and any changes will be lost. -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - - repository: azure-sdk-build-tools - type: git - name: internal/azure-sdk-build-tools - trigger: branches: include: @@ -32,11 +22,11 @@ pr: include: - sdk/textanalytics/ -stages: -- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: textanalytics ArtifactName: packages Artifacts: - name: Azure.AI.TextAnalytics - safeName: AzureAITextAnalytics + safeName: AzureAITextAnalytics \ No newline at end of file diff --git a/sdk/textanalytics/tests.yml b/sdk/textanalytics/tests.yml index 5d31281fc328c..542ad6ac7ee27 100644 --- a/sdk/textanalytics/tests.yml +++ b/sdk/textanalytics/tests.yml @@ -1,13 +1,6 @@ trigger: none -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - -jobs: -- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml +extends: + template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: ServiceDirectory: textanalytics \ No newline at end of file