Skip to content

Commit

Permalink
[CI Environment] Refactored pipelines (#1694)
Browse files Browse the repository at this point in the history
* Started refactoring ado pipelines

* GH pipeline rename

* Additional error handling

* Removal update

* Updated file fetch

* Refactored DevOps deployment template

* Updated template file reference
  • Loading branch information
AlexanderSehr authored Jul 23, 2022
1 parent 280db1a commit 85b5b82
Show file tree
Hide file tree
Showing 215 changed files with 1,732 additions and 3,108 deletions.
23 changes: 4 additions & 19 deletions .azuredevops/modulePipelines/ms.aad.domainservices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,7 @@ variables:
value: '/modules/Microsoft.AAD/DomainServices'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/parameters.json

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
25 changes: 4 additions & 21 deletions .azuredevops/modulePipelines/ms.analysisservices.servers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,7 @@ variables:
value: '/modules/Microsoft.AnalysisServices/servers'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/min.parameters.json
- path: $(modulePath)/.test/parameters.json
- path: $(modulePath)/.test/max.parameters.json

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
25 changes: 4 additions & 21 deletions .azuredevops/modulePipelines/ms.apimanagement.service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,7 @@ variables:
value: '/modules/Microsoft.ApiManagement/service'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/max.parameters.json
- path: $(modulePath)/.test/parameters.json
- path: $(modulePath)/.test/min.parameters.json

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,7 @@ variables:
value: '/modules/Microsoft.AppConfiguration/configurationStores'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/min.parameters.json
- path: $(modulePath)/.test/parameters.json

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
24 changes: 4 additions & 20 deletions .azuredevops/modulePipelines/ms.authorization.locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,7 @@ variables:
value: '/modules/Microsoft.Authorization/locks'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/rg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,7 @@ variables:
value: '/modules/Microsoft.Authorization/policyAssignments'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/mg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/mg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/rg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/rg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,7 @@ variables:
value: '/modules/Microsoft.Authorization/policyDefinitions'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/mg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/mg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.parameters.json
templateFilePath: $(modulePath)/deploy.bicep

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
34 changes: 4 additions & 30 deletions .azuredevops/modulePipelines/ms.authorization.policyexemptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,7 @@ variables:
value: '/modules/Microsoft.Authorization/policyExemptions'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/mg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/mg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/rg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/rg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,7 @@ variables:
value: '/modules/Microsoft.Authorization/policySetDefinitions'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/mg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/mg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.parameters.json
templateFilePath: $(modulePath)/deploy.bicep

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
34 changes: 4 additions & 30 deletions .azuredevops/modulePipelines/ms.authorization.roleassignments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,7 @@ variables:
value: '/modules/Microsoft.Authorization/roleAssignments'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/mg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/mg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/rg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/rg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
34 changes: 4 additions & 30 deletions .azuredevops/modulePipelines/ms.authorization.roledefinitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,7 @@ variables:
value: '/modules/Microsoft.Authorization/roleDefinitions'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/mg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/mg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/sub.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/rg.min.parameters.json
templateFilePath: $(modulePath)/deploy.bicep
- path: $(modulePath)/.test/rg.parameters.json
templateFilePath: $(modulePath)/deploy.bicep

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
25 changes: 4 additions & 21 deletions .azuredevops/modulePipelines/ms.automation.automationaccounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,7 @@ variables:
value: '/modules/Microsoft.Automation/automationAccounts'

stages:
- stage: Validation
displayName: Static validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml

- stage: Deployment
displayName: Deployment validation
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
deploymentBlocks:
- path: $(modulePath)/.test/min.parameters.json
- path: $(modulePath)/.test/parameters.json
- path: $(modulePath)/.test/encr.parameters.json

- stage: Publishing
displayName: Publishing
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true')))
jobs:
- template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
Loading

0 comments on commit 85b5b82

Please sign in to comment.