-
Notifications
You must be signed in to change notification settings - Fork 56
/
synapse_build_stage.yml
43 lines (43 loc) · 1.35 KB
/
synapse_build_stage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
parameters:
- name: serviceName
type: string
default: 'SampleApp'
- name: synapseDirectory
type: string
default: '$(Build.Repository.LocalPath)/synapse'
- name: targetWorkspaceName
type: string
default: 'synapse'
- name: parametersFolderPath
type: string
default: 'parameters'
- name: parametersArtifactName
type: string
default: 'parameters'
- name: azureSubscription
type: string
default: ''
- name: resourceGroupName
type: string
default: ''
- name: baseEnv
default: 'dev2'
- name: baseRegion
default: 'eus'
stages:
- stage: '${{ parameters.serviceName }}_build'
variables:
- template: ../variables/azure_${{ parameters.baseEnv }}_variables.yml
- template: ../variables/azure_global_variables.yml
jobs:
- template: ../jobs/synapse_build_job.yml
parameters:
serviceName: ${{ parameters.serviceName }}
synapseDirectory: ${{ parameters.synapseDirectory }}
targetWorkspaceName: '${{variables.synapseAbrv }}-${{ parameters.serviceName }}-${{ parameters.baseEnv }}-${{ parameters.baseRegion }}'
azureSubscription: ${{ variables.azureSubscription }}
resourceGroupName: ${{ variables.resourceGroupName }}
- template: ../jobs/artifact_publish_job.yml
parameters:
targetPath: ${{ parameters.parametersFolderPath }}
artifactName: ${{ parameters.parametersArtifactName}}