Skip to content

Commit

Permalink
Reference tools repo version (Azure#12627)
Browse files Browse the repository at this point in the history
* Start switching to refs

* Update repository resource to point to ref

* Using extends keyword to extend ci.yml.
  • Loading branch information
chidozieononiwu authored Jun 17, 2020
1 parent 3c6a978 commit a448dcc
Show file tree
Hide file tree
Showing 48 changed files with 182 additions and 517 deletions.
11 changes: 2 additions & 9 deletions eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
resources:
repositories:
- repository: azure-sdk-tools
type: github
name: azure/azure-sdk-tools
endpoint: azure

jobs:
- job: GenerateDocIndex
variables:
Expand All @@ -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: '.'
Expand All @@ -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
Expand Down
7 changes: 1 addition & 6 deletions eng/pipelines/mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/archetype-sdk-mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
43 changes: 35 additions & 8 deletions eng/pipelines/templates/jobs/archetype-sdk-tests.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
34 changes: 30 additions & 4 deletions eng/pipelines/templates/stages/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/archetype-sdk-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '.'
Expand Down
10 changes: 0 additions & 10 deletions eng/templates/Azure.ResourceManager.Template/content/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
16 changes: 3 additions & 13 deletions sdk/appconfiguration/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -32,13 +22,13 @@ 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
Artifacts:
- name: Azure.Data.AppConfiguration
safeName: AzureDataAppConfiguration
- name: Azure.ResourceManager.AppConfiguration
safeName: AzureResourceManagerAppConfiguration
safeName: AzureResourceManagerAppConfiguration
11 changes: 2 additions & 9 deletions sdk/appconfiguration/tests.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 3 additions & 15 deletions sdk/applicationinsights/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
17 changes: 3 additions & 14 deletions sdk/attestation/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
16 changes: 3 additions & 13 deletions sdk/batch/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand All @@ -43,4 +33,4 @@ stages:
- name: Microsoft.Azure.Batch.FileStaging
safeName: MicrosoftAzureBatchFileStaging
- name: Microsoft.Azure.Batch.Conventions.Files
safeName: MicrosoftAzureBatchConventionsFiles
safeName: MicrosoftAzureBatchConventionsFiles
16 changes: 3 additions & 13 deletions sdk/cognitiveservices/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -103,4 +93,4 @@ stages:
directoryName: Vision.CustomVision.Training
- name: Microsoft.Azure.CognitiveServices.Vision.Face
safeName: MicrosoftAzureCognitiveServicesVisionFace
directoryName: Vision.Face
directoryName: Vision.Face
16 changes: 3 additions & 13 deletions sdk/compute/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Loading

0 comments on commit a448dcc

Please sign in to comment.