Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI Environment] Refactored pipelines #1694

Merged
merged 11 commits into from
Jul 23, 2022
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 }}'
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 }}'
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 }}'
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 }}'
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